BoundingSphere

Hierarchy

  • BoundingSphere

Index

Constructors

constructor

  • Creates a new bounding sphere

    Parameters

    • min: Vector3

      defines the minimum vector (in local space)

    • max: Vector3

      defines the maximum vector (in local space)

    Returns BoundingSphere

Properties

center

center: Vector3

centerWorld

centerWorld: Vector3

maximum

maximum: Vector3

minimum

minimum: Vector3

radius

radius: number

radiusWorld

radiusWorld: number

Methods

intersectsPoint

  • intersectsPoint(point: Vector3): boolean
  • Parameters

    Returns boolean

isInFrustum

  • isInFrustum(frustumPlanes: Plane[]): boolean
  • Parameters

    Returns boolean

reConstruct

  • Recreates the entire bounding sphere from scratch

    Parameters

    • min: Vector3

      defines the new minimum vector (in local space)

    • max: Vector3

      defines the new maximum vector (in local space)

    Returns void

scale

  • Scale the current bounding sphere by applying a scale factor

    Parameters

    • factor: number

      defines the scale factor to apply

    Returns BoundingSphere

    the current bounding box

Static Intersects

Generated using TypeDoc