rayAxisAlignedBoundingBox

Computes the intersection points of a ray with an axis-aligned bounding box. (axis-aligned in the same space as the ray)

Parameters

ray

The ray.

box

The axis-aligned bounding box.

result

The interval containing scalar points along the ray or undefined if there are no intersections.

See also