Package | away3d.bounds |
Class | public class BoundingSphere |
Inheritance | BoundingSphere BoundingVolumeBase |
Method | Defined by | ||
---|---|---|---|
Creates a new BoundingSphere object
| BoundingSphere | ||
Clones the current BoundingVolume object
| BoundingSphere | ||
fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):void
Sets the bounds to the given extrema
| BoundingSphere | ||
Updates the bounds to fit a Geometry object.
| BoundingVolumeBase | ||
fromSphere(center:Vector3D, radius:Number):void
Sets the bound to fit a given sphere.
| BoundingSphere | ||
fromVertices(vertices:Vector):void
Updates the bounds to fit a list of vertices
| BoundingVolumeBase | ||
isInFrustum(mvpMatrix:Matrix3D):Boolean
Tests if the bounds are in the camera frustum.
| BoundingSphere | ||
nullify():void
Sets the bounds to zero size.
| BoundingSphere |
BoundingSphere | () | constructor |
public function BoundingSphere()
Init Parameters
clone | () | method |
public override function clone():BoundingVolumeBase
Clones the current BoundingVolume object
ReturnsBoundingVolumeBase —
An exact duplicate of this object
|
fromExtremes | () | method |
public override function fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):void
Sets the bounds to the given extrema
ParametersminX:Number |
|
minY:Number |
|
minZ:Number |
|
maxX:Number |
|
maxY:Number |
|
maxZ:Number |
fromSphere | () | method |
public override function fromSphere(center:Vector3D, radius:Number):void
Sets the bound to fit a given sphere.
Parameterscenter:Vector3D — The center of the sphere to be bounded
|
|
radius:Number — The radius of the sphere to be bounded
|
isInFrustum | () | method |
public override function isInFrustum(mvpMatrix:Matrix3D):Boolean
Tests if the bounds are in the camera frustum.
ParametersmvpMatrix:Matrix3D — The model view projection matrix for the object to which this bounding box belongs.
|
Boolean — True if the bounding box is at least partially inside the frustum
|
nullify | () | method |
public override function nullify():void
Sets the bounds to zero size.