A 2D ray that can be cast into the scene to do collision detection
The starting position for the ray
The vector indicating the direction of the ray
Returns the point of intersection given the intersection time
Tests a whether this ray intersects with a line segment. Returns a number greater than or equal to 0 on success. This number indicates the mathematical intersection time.
The line to test
A 2D ray that can be cast into the scene to do collision detection