CLASSES
TagsA - Z

BoundingSphere

MeshBounding

Description

class BoundingSphere

Constructor

new BoundingSphere(minimum, maximum)

The BoundingSphere constructor

Parameters

Name Type Description
minimum Vector3 The minimum of the sphere
maximum Vector3 The maximum of the sphere

Members

minimum : Vector3

The minimum size of the bounding sphere

maximum : Vector3

The minimum of the bounding sphere

center : Vector3

The center of the bounding sphere

radius : number

The radius of the bounding sphere

centerWorld : Vector3

radiusWorld : number

Methods

isInFrustum(frustumPlanes) boolean

Check if the boundingSphere is in frustum

Parameters

Name Type Description
frustumPlanes Plane[] the frustum planes

intersectsPoint(point) boolean

Check if this bounding sphere intersect the point given in parameter

Parameters

Name Type Description
point Vector3 The point

static Intersects(sphere0, sphere1) boolean

Parameters

Name Type Description
sphere0 BoundingSphere The first sphere
sphere1 BoundingSphere The second sphere