Implement a type to represent a ray. We should have both 2D and 3D rays. This issue specifically proposes to implement a 2D ray.
Context
Ray-ray intersections, and other geometric constructions or intersections, are a common staple in games. Having a single implementation, which is correct (enforced by tests) and performant (ideally enforced by benchmarks) would be hugely beneficial. Having a ray representation would be the first requirement in implementing geometric constructions around rays.
🆙 Improvement proposal
Implement a type to represent a ray. We should have both 2D and 3D rays. This issue specifically proposes to implement a 2D ray.
Context
Ray-ray intersections, and other geometric constructions or intersections, are a common staple in games. Having a single implementation, which is correct (enforced by tests) and performant (ideally enforced by benchmarks) would be hugely beneficial. Having a ray representation would be the first requirement in implementing geometric constructions around rays.