Commit Graph

51 Commits

Author SHA1 Message Date
Jon Janzen 48b5d0a400 Added multiplying a tuple by a matrix 2021-09-03 19:21:09 -06:00
Jon Janzen be2d23914d transformation function 2021-09-03 19:13:26 -06:00
Jon Janzen 909aa52dd6 added transformations 2021-06-13 09:58:44 -06:00
Jon Janzen 6fd0e7608d Removed out.ppm 2021-06-13 09:54:26 -06:00
Jon Janzen 29bccd78fe completed rename. merged crates to features 2021-06-13 09:53:38 -06:00
Jon Janzen 90d3148335 Added some clarifying text to the output 2021-06-12 15:54:16 -06:00
Jon Janzen 267bc15e2e played iwht matrix 2021-04-02 19:02:57 -06:00
Jon Janzen a4ffb3b7d6 Inverse tests, and Mul is references 2021-04-02 18:49:39 -06:00
Jon Janzen e148f8ccef Added assert_matrix_eq to allow high max_relative for tests 2021-04-02 17:23:44 -06:00
Jon Janzen ccb4184fb3 inverse works but rel equal doesn't 2021-04-02 17:15:04 -06:00
Jon Janzen 49b1744604 went back to vec
submatrixes and determinant can be used in the same method now
2021-04-02 16:33:31 -06:00
Jon Janzen 75f882f860 determinants can not function
const_generics are not done and I can not use 2 methods in one due to the errors
2021-04-02 15:58:25 -06:00
Jon Janzen 02c557c4a3 slightly better minor 2021-04-02 15:00:00 -06:00
Jon Janzen d8fe799890 added cofactor 2021-04-02 14:58:55 -06:00
Jon Janzen 517cb40de8 minor without calling submatrix 2021-04-02 14:52:52 -06:00
Jon Janzen 6dcfb6863b Added minor 2021-04-02 14:37:49 -06:00
Jon Janzen c9d2559cba fixed sub_matrix Width 2021-04-02 14:09:53 -06:00
Jon Janzen bc4f061bcd added submatrixes
had to use in development features to allow math with const generics
2021-04-02 13:56:19 -06:00
Jon Janzen 704503a9a1 handled clippy 2021-03-31 15:52:21 -06:00
Jon Janzen 9c20d13833 allow rectangular matrixes 2021-03-31 15:38:00 -06:00
Jon Janzen 82360600fe Fixed transpose by moving to an iterative method 2021-03-31 15:30:08 -06:00
Jon Janzen 588acf36a3 added determinant 2021-03-31 15:19:48 -06:00
Jon Janzen c78c1ed8f6 switched from vec to array with const generic size 2021-03-31 15:19:04 -06:00
Jon Janzen 8a3538c789 Added Cargo.lock 2021-03-30 19:05:34 -06:00
Jon Janzen 6c685aef15 transposition 2021-03-29 19:38:00 -06:00
Jon Janzen f106344504 identity matrix 2021-03-29 19:18:21 -06:00
Jon Janzen 5ca76b424a multiple matrix by tuple 2021-03-28 19:16:14 -06:00
Jon Janzen 6fd1eb49b7 wrote test for matix multiplication 2021-03-28 18:29:18 -06:00
Jon Janzen c47d3448a3 can create from arrays 2021-03-28 18:19:56 -06:00
Jon Janzen f24280c866 matrix with equality 2021-03-28 18:00:15 -06:00
Jon Janzen 2a602f5804 wrote first bit of matrix 2021-03-26 20:01:41 -06:00
Jon Janzen 7bb7fa8ab4 added matrix init 2021-03-26 16:32:00 -06:00
Jon Janzen 6dafed1195 multi-ball 2021-03-21 19:49:24 -06:00
Jon Janzen 750435847e start from 0 works 2021-03-21 19:27:16 -06:00
Jon Janzen 1f33d87193 can make a ppm 2021-03-20 20:12:47 -06:00
Jon Janzen 842c93568b assert new line at end of ppm 2021-03-05 17:32:47 -07:00
Jon Janzen aa4e01d3f7 added canvas sizes 2021-03-05 17:14:06 -07:00
Jon Janzen 1fc84c7d1f Can create canvas 2021-02-19 19:58:52 -07:00
Jon Janzen 5232e69ec1 Added color 2021-02-13 17:09:47 -07:00
Jon Janzen 06d08942f0 Played with values 2021-02-07 14:59:00 -07:00
Jon Janzen bf1afc092e Created a Projectile and allowed it to be operated on by wind and gravity 2021-02-07 14:49:14 -07:00
Jon Janzen c863cf5a8b Made methods pub so I could use them 2021-02-07 14:48:45 -07:00
Jon Janzen 4b0515f4b1 Created tuples and with structs.
Need to do the cannon exercise yet
2021-02-06 16:56:03 -07:00
Jon Janzen 334e2ef3ea create structs lib, mimics tuple lib, but implements Tuple.
This allows for operator overloading. It will make it significantly easier to write code for Tuple objects.
2021-01-23 20:13:34 -07:00
Jon Janzen ea51c5785d multiplicaiton, division, and negation 2021-01-23 19:15:26 -07:00
Jon Janzen 275d857e7a tuple addition and subtraction 2021-01-23 18:46:21 -07:00
Jon Janzen 2e481efd7a changed point/vector to not take tuples in 2021-01-23 18:30:01 -07:00
Jon Janzen f827fd19eb tuple equality 2021-01-23 18:24:49 -07:00
Jon Janzen 285c75bbda moved to relative float equivalence 2021-01-23 18:17:28 -07:00
Jon Janzen 864ad4d40b first tuple test 2021-01-23 17:59:10 -07:00