BoundingSphere

Class used to store bounding sphere information

Hierarchy

  • BoundingSphere

Index

Constructors

constructor

Find examples in Playground

Properties

center

Find examples in Playground
center: Vector3

Gets the center of the bounding sphere in local space

centerWorld

Find examples in Playground
centerWorld: Vector3

Gets the center of the bounding sphere in world space

maximum

Find examples in Playground
maximum: Vector3

Gets the maximum vector in local space

minimum

Find examples in Playground
minimum: Vector3

Gets the minimum vector in local space

radius

Find examples in Playground
radius: number

Radius of the bounding sphere in local space

radiusWorld

Find examples in Playground
radiusWorld: number

Radius of the bounding sphere in world space

Methods

getWorldMatrix

Find examples in Playground

intersectsPoint

Find examples in Playground
  • Tests if a point is inside the bounding sphere

    Parameters

    Returns boolean

    true if the point is inside the bounding sphere

isCenterInFrustum

Find examples in Playground
  • Tests if the bounding sphere center is in between the frustum planes. Used for optimistic fast inclusion.

    Parameters

    Returns boolean

    true if the sphere center is in between the frustum planes

isInFrustum

Find examples in Playground
  • Tests if the bounding sphere is intersecting the frustum planes

    Parameters

    Returns boolean

    true if there is an intersection

reConstruct

Find examples in Playground
  • Recreates the entire bounding sphere from scratch as if we call the constructor in place

    Parameters

    Returns void

scale

Find examples in Playground
  • 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

Find examples in Playground

Generated using TypeDoc