BoundingSphere

Bounding sphere. This is stored as a Vector4, where the first 3 components are the center position, and the fourth element is the radius.

Constructor

new L3D.BoundingSphere()

Properties

center Vector4

The center of the sphere. The 4th element of the Vector4 is the radius.

radius number

The radius of the bounding sphere.

Methods

setCenter(x_v, y, z)

Set the center of the bounding sphere.

Parameters
x_v number | Vector3
y number
z number