Minimal Ray geometric primitive
Minimal possible Ray primitive
npm install ray
position A point in space representing the start of the ray.
direction A vector representing the direction the ray points towards.
dimensions the number of dimensions of space the ray exists within.
Constructs a new Ray primitive with the specified parameters.
Returns the 0-based index of the ray's direction vector with the greatest magnitude.
Returns a RaySegment - the line segment created by
maxT along the ray.