Package | away3d.bounds |
Class | public class NullBounds |
Inheritance | NullBounds BoundingVolumeBase |
Method | Defined by | ||
---|---|---|---|
NullBounds
(alwaysIn:Boolean = true) | NullBounds | ||
Clones the current BoundingVolume object
| BoundingVolumeBase | ||
fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):void
Sets the bounds to the given extrema
| NullBounds | ||
Updates the bounds to fit a Geometry object.
| NullBounds | ||
fromSphere(center:Vector3D, radius:Number):void
Sets the bound to fit a given sphere.
| NullBounds | ||
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.
| NullBounds | ||
nullify():void
Sets the bounds to zero size.
| BoundingVolumeBase |
NullBounds | () | constructor |
public function NullBounds(alwaysIn:Boolean = true)
Parameters
alwaysIn:Boolean (default = true )
|
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 |
fromGeometry | () | method |
public override function fromGeometry(geometry:Geometry):void
Updates the bounds to fit a Geometry object.
Parametersgeometry:Geometry — The Geometry object to be bounded.
|
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
|