Add intersection with cylinders

This commit is contained in:
2025-10-10 11:21:40 +01:00
parent 3ea14a4646
commit e00bb0b26e
6 changed files with 256 additions and 200 deletions
-3
View File
@@ -32,7 +32,6 @@ import Geometry.Triangulate
import Geometry.Vector
import Geometry.Vector3D
import ListHelp
import Linear.Metric
{- | Return a point a distance away from a first point towards a second point.
Does not go past the second point.
@@ -137,8 +136,6 @@ difference x y
reflectIn :: Point2 -> Point2 -> Point2
reflectIn line vec = rotateV (2 * angleBetween line vec) vec
reflectInNormal :: Point3 -> Point3 -> Point3
reflectInNormal n v = v - (2 * project n v)
-- takes an angle of entry (measured from x axis) and two wall points and gives a
-- reflected angle (from x axis)