Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TileBoundingVolume

Index

Methods

  • distanceSquaredTo(point: readonly number[]): number
  • Computes the estimated distance squared from the closest point on a bounding sphere to a point.

    Parameters

    • point: readonly number[]

    Returns number

  • distanceTo(point: readonly number[]): number
  • Computes the estimated distance from the closest point on a bounding sphere to a point.

    Parameters

    • point: readonly number[]

    Returns number

  • intersectPlane(plane: Plane): number
  • Determines which side of a plane the oriented bounding box is located.

    Parameters

    • plane: Plane

      The plane to test against.

    Returns number

    • INTERSECTION.INSIDE if the entire box is on the side of the plane the normal is pointing.
    • INTERSECTION.OUTSIDE if the entire box is on the opposite side.
    • INTERSECTION.INTERSECTING if the box intersects the plane.
  • Applies a 4x4 affine transformation matrix to a bounding sphere.

    Parameters

    • transform: readonly number[]

      The transformation matrix to apply to the bounding sphere.

    Returns TileBoundingVolume

    itself, i.e. the modified BoundingVolume.