Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to store bounding sphere information

Hierarchy

  • BoundingSphere

Index

Constructors

Properties

center: Vector3

Gets the center of the bounding sphere in local space

centerWorld: Vector3

Gets the center of the bounding sphere in world space

maximum: Vector3

Gets the maximum vector in local space

minimum: Vector3

Gets the minimum vector in local space

radius: number

Radius of the bounding sphere in local space

radiusWorld: number

Radius of the bounding sphere in world space

Methods

  • Gets the world matrix of the bounding box

    Returns DeepImmutableObject<Matrix>

    a matrix

  • Tests if a point is inside the bounding sphere

    Parameters

    Returns boolean

    true if the point is inside the bounding sphere

  • 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

  • Tests if the bounding sphere is intersecting the frustum planes

    Parameters

    Returns boolean

    true if there is an intersection

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

    Parameters

    Returns void

  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme