73 Commits

Author SHA1 Message Date
Jon Janzen
6a5d95ae64 Sphere 2023-12-01 18:08:32 -07:00
Jon Janzen
e7f926ac1e Added position 2022-03-21 15:25:56 -06:00
Jon Janzen
cd297fd4a9 enforce point and vector for origin and direction 2022-03-11 18:35:11 -07:00
Jon Janzen
910570bf37 Can create ray 2022-03-11 18:23:26 -07:00
Jon Janzen
f2056615be added ray.rs 2022-03-11 18:15:39 -07:00
Jon Janzen
05c17b0179 no vscode 2022-01-07 08:50:57 -07:00
Jon Janzen
6e5af62c02 fixed warnings 2022-01-05 08:45:30 -07:00
Jon Janzen
be9abb56d9 removed extra .0s 2022-01-02 17:16:42 -07:00
Jon Janzen
b40d7c5b7b tranformation works with any number type 2022-01-01 18:11:39 -07:00
Jon Janzen
ae9316bc8e color can use any number type 2022-01-01 17:58:48 -07:00
Jon Janzen
e22fa3db61 matrix can handle any type for input 2022-01-01 17:54:03 -07:00
Jon Janzen
8a0f44144d Tuple point and vector take any time 2022-01-01 16:51:36 -07:00
Jon Janzen
71fc73bf1a tuple::new can take any type of number 2022-01-01 16:30:51 -07:00
Jon Janzen
b2ec53525d added draw cross 2021-10-03 16:19:44 -06:00
Jon Janzen
0b3132ee4f cleaned up a bit 2021-10-03 15:56:39 -06:00
Jon Janzen
1e57661ace Can make a clock face 2021-10-02 19:22:27 -06:00
Jon Janzen
ed3773a299 refactored main to make room for clock 2021-09-11 20:16:07 -06:00
Jon Janzen
1a414bc485 approx with numbers near 0 needs higher max relative 2021-09-11 19:59:59 -06:00
Jon Janzen
0dfa9248cb shearing 2021-09-03 20:36:37 -06:00
Jon Janzen
2c1b5354fa rotation complete 2021-09-03 20:17:18 -06:00
Jon Janzen
5fb429b9d0 rotation around x axis 2021-09-03 20:09:28 -06:00
Jon Janzen
e523852cd4 added scaling 2021-09-03 19:42:49 -06:00
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