BoundingSphere
A bounding sphere is a sphere enclosing e.g. mesh data and may be used for frustum culling
Constructors
BoundingSphere:newBoundingSphere(center, size)
Creates a new bounding sphere
Arguments
center
(Vec3) optional
size
(number) optional
Fields
center
(Vec3)
size
(number)
Methods
BoundingSphere:merge(other)
Merge with a second bounding sphere
Arguments
other
(BoundingSphere)
Returns
BoundingSphere:extend(margin)
Extend bounding sphere
Arguments
margin
(number)
Returns
BoundingSphere:intersect(other)
Test if two bounding spheres intersect
Arguments
other
(BoundingSphere)
Returns
(boolean)
BoundingSphere:isInitialized()
Returns
(boolean)
BoundingSphere:getCenter()
Returns
(Vec3)
BoundingSphere:getSize()
Returns
(number)