6 Commits

Author SHA1 Message Date
7b8506d102 Fix typo in cross product calculation 2021-01-12 18:44:21 +01:00
bf96bbf26f Some bugfixes and intersection test in Main
It seems to work, at least to some extent!
2020-12-28 17:39:58 +01:00
d966beeb15 Change Triangle to hold Vectors, not Points 2020-12-28 17:21:03 +01:00
6cb085dcd6 Implement Vector dot and cross product
A new Vector constructor was added for ease of use.
2020-12-28 17:16:00 +01:00
a1bae6dd5b Implement ray-triangle-intersection; separate Vector and Point for this 2020-12-28 17:08:56 +01:00
97f8265014 Move geometry structs to own file
Also, the Ray got an unimplemented `intersects_triangle` method, so the kdtree intersection function should be complete.
2020-12-28 16:34:51 +01:00