ihmcrobotics / euclid

Vector math, geometry, reference frame, and shapes 2D & 3D
Apache License 2.0
31 stars 9 forks source link

`intersectionWith` methods for Ray3D on Shapes #42

Open calvertdw opened 3 years ago

calvertdw commented 3 years ago

There is very often int intersectionWith(Line3DReadOnly line, Point3DBasics firstIntersectionToPack, Point3DBasics secondIntersectionToPack), but when doing graphics picking, I have a ray and I don't want to collide with things behind the screen.

This just requests that wherever there's an intersectWith line, there's also one for a ray.