Class BoundingSphere

Hierarchy

  • BoundingSphere

Constructors

Properties

Methods

Constructors

Properties

center: Vector3
radius: number

Methods

  • Computes the bounds of the BoundingSphere from the given vertices

    Parameters

    • vertices: number[] | Vector3[]

      The array of Vector3 or number objects representing the vertices

    • boundingBox: BoundingBox3

      The BoundingBox3 object to use when computing the bounds

    Returns void

  • Checks if the given BoundingSphere intersects with the current one

    Returns

    True if the two BoundingSpheres intersect, false otherwise

    Parameters

    Returns boolean

Generated using TypeDoc