IM2WorldBoundingBox

A world-space bounding box that extends IM2BoundingBox with 3D ray-intersection capabilities.

Implementations compute intersection points between a 3D ray direction and the bounding volume, enabling gaze/line-of-sight hit-testing for AR objects.

Functions

Link copied to clipboard
abstract fun calcIntersectionPoint(rayDirection: FloatArray): FloatArray?

Calculates the intersection point between a ray originating at the camera and this bounding box.

Convenience overload of calcIntersectionPoint that accepts scalar direction components instead of an array.