ianmackenzie / elm-geometry

2D/3D geometry package for Elm
Mozilla Public License 2.0
183 stars 26 forks source link

Implement Axis3d.intersectionWithRectangle #146

Closed w0rm closed 1 year ago

w0rm commented 3 years ago

Implemented intersection of a ray with rectangle. I had to inline plane construction because of circular dependency.

Any idea on how this can be tested? I can add hardcoded test cases, but I wonder if we could come up with some fuzz tests.

w0rm commented 3 years ago

Rebased and added tests similar to Axis3d.intersectionWithTriangle