Packagecom.derschmale.wick3d.core.geometry.bounds
Classpublic class BoundingSphere
InheritanceBoundingSphere Inheritance AbstractBoundingVolume
ImplementsIBoundingVolume

The BoundingSphere class is a sphere-shaped bounding volume. It uses the object's centre coordinates



Protected Properties
 PropertyDefined by
 Inherited_vertices : Array
AbstractBoundingVolume
Public Methods
 MethodDefined by
  
BoundingSphere(vertices:Array)
Creates a BoundingSphere object.
BoundingSphere
  
Tests the bounds to a camera's frustum.
BoundingSphere
  
Transforms the bounding volume to view coordinates.
BoundingSphere
  
updateBounds():void
Updates the bounds according to the current vertices.
BoundingSphere
Protected Methods
 MethodDefined by
 Inherited
AbstractBoundingVolume
Constructor detail
BoundingSphere()constructor
public function BoundingSphere(vertices:Array)

Creates a BoundingSphere object.

Parameters
vertices:Array — The vertices of the object. The vertices passed here should be in object space.
Method detail
testBoundsToFrustum()method
public override function testBoundsToFrustum(frustum:ViewFrustum):Boolean

Tests the bounds to a camera's frustum.

Parameters
frustum:ViewFrustum — The view frustum to test to.

Returns
Boolean

See also

transformToViewCoords()method 
public override function transformToViewCoords(transform:Transformation3D):void

Transforms the bounding volume to view coordinates.

Parameters
transform:Transformation3D — The transformation object to be used.

See also

updateBounds()method 
public override function updateBounds():void

Updates the bounds according to the current vertices.