@pmndrs/bvh
    Preparing search index...

    Function raySegmentHit

    • One segment against a ray with three's Line.raycast test, outside any tree (@pmndrs/bvh/three tests a LineLoop's closing segment for a draw range this way): the hit, or null when the segment is farther than threshold. The direction must be unit length.

      Parameters

      • origin: readonly [number, number, number]
      • direction: readonly [number, number, number]
      • start: BvhVec3Like
      • end: BvhVec3Like
      • threshold: number
      • index: number

      Returns BvhPrimitiveRaycastHit | null