Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoundingSphere

Class used to store bounding sphere information

Hierarchy

  • BoundingSphere

Index

Constructors

constructor

Properties

Readonly centerSearch playground for center

center: Vector3

Gets the center of the bounding sphere in local space

Readonly centerWorldSearch playground for centerWorld

centerWorld: Vector3

Gets the center of the bounding sphere in world space

Readonly maximumSearch playground for maximum

maximum: Vector3

Gets the maximum vector in local space

Readonly minimumSearch playground for minimum

minimum: Vector3

Gets the minimum vector in local space

radiusSearch playground for radius

radius: number

Radius of the bounding sphere in local space

radiusWorldSearch playground for radiusWorld

radiusWorld: number

Radius of the bounding sphere in world space

Methods

getWorldMatrixSearch playground for getWorldMatrix

  • Gets the world matrix of the bounding box

    Returns DeepImmutable<Matrix>

    a matrix

intersectsPointSearch playground for intersectsPoint

  • Tests if a point is inside the bounding sphere

    Parameters

    Returns boolean

    true if the point is inside the bounding sphere

isCenterInFrustumSearch playground for isCenterInFrustum

  • 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

isInFrustumSearch playground for isInFrustum

  • Tests if the bounding sphere is intersecting the frustum planes

    Parameters

    Returns boolean

    true if there is an intersection

reConstructSearch playground for reConstruct

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

    Parameters

    Returns void

scaleSearch playground for 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 CreateFromCenterAndRadiusSearch playground for CreateFromCenterAndRadius

Static IntersectsSearch playground for Intersects

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method