math docs
    Preparing search index...

    Function intersectsBox3

    • Test if a ray intersects an axis-aligned bounding box. Uses slab-based algorithm that handles parallel rays correctly.

      Parameters

      • origin: vec3.Vec3

        ray origin

      • direction: vec3.Vec3

        ray direction

      • length: number

        ray length

      • aabb: box3.Box3

        AABB to test against

      Returns boolean

      true if ray intersects the AABB, false otherwise