@pmndrs/bvh
    Preparing search index...

    Interface BvhPrimitiveRaycastHit

    One hit of a primitive raycast, in the tree's space.

    interface BvhPrimitiveRaycastHit {
        distance: number;
        distanceToRay: number;
        index: number;
        pointOnPrimitive: [number, number, number];
        pointOnRay: [number, number, number];
    }
    Index
    distance: number

    From the ray's origin to pointOnRay: three's distance.

    distanceToRay: number

    Between the ray and the primitive: three's distanceToRay (points).

    index: number

    The primitive's entry (see the file comment).

    pointOnPrimitive: [number, number, number]

    The primitive's point nearest the ray: the point itself, or the point on the segment (three's point for lines).

    pointOnRay: [number, number, number]

    The ray's point nearest the primitive (three's point for Points).