rayAxisAlignedBoundingBox
external fun rayAxisAlignedBoundingBox(ray: Ray, box: AxisAlignedBoundingBox, result: Interval?): Interval?(source)
Computes the intersection points of a ray with an axis-aligned bounding box. (axis-aligned in the same space as the ray)
Return
The modified result parameter, or undefined if there is no intersection.
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.