Package | away3d.bounds |
Class | public class BoundingVolumeBase |
Subclasses | AxisAlignedBoundingBox, BoundingSphere, NullBounds |
Property | Defined by | ||
---|---|---|---|
aabbPoints : Vector [read-only]
| BoundingVolumeBase | ||
max : Vector3D [read-only]
The maximum extrema of the bounds
| BoundingVolumeBase | ||
min : Vector3D [read-only]
The minimum extrema of the bounds
| BoundingVolumeBase |
Property | Defined by | ||
---|---|---|---|
_aabbPoints : Vector | BoundingVolumeBase | ||
_aabbPointsDirty : Boolean = true | BoundingVolumeBase | ||
_max : Vector3D | BoundingVolumeBase | ||
_min : Vector3D | BoundingVolumeBase |
Method | Defined by | ||
---|---|---|---|
Creates a new BoundingVolumeBase object
| BoundingVolumeBase | ||
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
| BoundingVolumeBase | ||
Updates the bounds to fit a Geometry object.
| BoundingVolumeBase | ||
fromSphere(center:Vector3D, radius:Number):void
Sets the bound to fit a given sphere.
| BoundingVolumeBase | ||
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.
| BoundingVolumeBase | ||
nullify():void
Sets the bounds to zero size.
| BoundingVolumeBase |
Method | Defined by | ||
---|---|---|---|
updateAABBPoints():void
| BoundingVolumeBase |
_aabbPoints | property |
protected var _aabbPoints:Vector
aabbPoints | property |
aabbPoints:Vector
[read-only]Implementation
public function get aabbPoints():Vector
_aabbPointsDirty | property |
protected var _aabbPointsDirty:Boolean = true
_max | property |
protected var _max:Vector3D
max | property |
max:Vector3D
[read-only]The maximum extrema of the bounds
Implementation public function get max():Vector3D
_min | property |
protected var _min:Vector3D
min | property |
min:Vector3D
[read-only]The minimum extrema of the bounds
Implementation public function get min():Vector3D
BoundingVolumeBase | () | constructor |
public function BoundingVolumeBase()
Init Parameters
clone | () | method |
public function clone():BoundingVolumeBase
Clones the current BoundingVolume object
ReturnsBoundingVolumeBase —
An exact duplicate of this object
|
fromExtremes | () | method |
public 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 function fromGeometry(geometry:Geometry):void
Updates the bounds to fit a Geometry object.
Parametersgeometry:Geometry — The Geometry object to be bounded.
|
fromSphere | () | method |
public 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
|
fromVertices | () | method |
public function fromVertices(vertices:Vector):void
Updates the bounds to fit a list of vertices
Parametersvertices:Vector — A Vector. |
isInFrustum | () | method |
public 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 function nullify():void
Sets the bounds to zero size.
updateAABBPoints | () | method |
protected function updateAABBPoints():void