Represents a mathematical ray in 3D space.
Creates a new Ray.
The origin point of the ray.
The normalized direction vector of the ray.
Computes the point along the ray at a given distance.
The distance along the ray.
Optional target vector.
The computed point.
Tests whether this ray intersects the given AABB. Uses the slab method.
The axis-aligned bounding box.
The distance t to the intersection, or -1 if no intersection.
t
Sets the ray's origin and direction.
The new origin.
The new normalized direction.
This ray instance.
Represents a mathematical ray in 3D space.