| Package | away3d.bounds |
| Class | public class AxisAlignedBoundingBox |
| Inheritance | AxisAlignedBoundingBox BoundingVolumeBase Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | aabbPoints : Vector.<Number> [read-only]
Returns a vector of values representing the concatenated cartesian triplet of the 8 axial extremities of the bounding volume. | BoundingVolumeBase | |
![]() | boundingRenderable : WireframePrimitiveBase [read-only]
Returns the bounding renderable object for the bounding volume, in cases where the showBounds
property of the entity is set to true. | BoundingVolumeBase | |
| halfExtentsX : Number [read-only] | AxisAlignedBoundingBox | ||
| halfExtentsY : Number [read-only] | AxisAlignedBoundingBox | ||
| halfExtentsZ : Number [read-only] | AxisAlignedBoundingBox | ||
![]() | max : Vector3D [read-only]
The maximum extreme of the bounds
| BoundingVolumeBase | |
![]() | min : Vector3D [read-only]
The minimum extreme of the bounds
| BoundingVolumeBase | |
| Method | Defined By | ||
|---|---|---|---|
Creates a new AxisAlignedBoundingBox object. | AxisAlignedBoundingBox | ||
[override]
Clones the current BoundingVolume object
| AxisAlignedBoundingBox | ||
closestPointToPoint(point:Vector3D, target:Vector3D = null):Vector3D | AxisAlignedBoundingBox | ||
containsPoint(position:Vector3D):Boolean [override]
Method for calculating whether the given position is contained within the bounding volume. | AxisAlignedBoundingBox | ||
![]() | disposeRenderable():void
Disposes of the bounds renderable object. | BoundingVolumeBase | |
fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):void [override]
Sets the bounds to the given extrema. | AxisAlignedBoundingBox | ||
![]() | fromGeometry(geometry:Geometry):void
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.<Number>):void
Updates the bounds to fit a list of vertices
| BoundingVolumeBase | |
isInFrustum(mvpMatrix:Matrix3D):Boolean [override]
Tests if the bounds are in the camera frustum. | AxisAlignedBoundingBox | ||
nullify():void [override]
Sets the bounds to zero size. | AxisAlignedBoundingBox | ||
rayIntersection(position:Vector3D, direction:Vector3D, targetNormal:Vector3D):Number [override] | AxisAlignedBoundingBox | ||
| Method | Defined By | ||
|---|---|---|---|
[override] | AxisAlignedBoundingBox | ||
![]() | updateAABBPoints():void | BoundingVolumeBase | |
updateBoundingRenderable():void [override] | AxisAlignedBoundingBox | ||
| halfExtentsX | property |
halfExtentsX:Number [read-only] public function get halfExtentsX():Number| halfExtentsY | property |
halfExtentsY:Number [read-only] public function get halfExtentsY():Number| halfExtentsZ | property |
halfExtentsZ:Number [read-only] public function get halfExtentsZ():Number| AxisAlignedBoundingBox | () | Constructor |
public function AxisAlignedBoundingBox()
Creates a new AxisAlignedBoundingBox object.
| clone | () | method |
override public function clone():BoundingVolumeBaseClones the current BoundingVolume object
ReturnsBoundingVolumeBase — An exact duplicate of this object
|
| closestPointToPoint | () | method |
public function closestPointToPoint(point:Vector3D, target:Vector3D = null):Vector3DParameters
point:Vector3D | |
target:Vector3D (default = null) |
Vector3D |
| containsPoint | () | method |
override public function containsPoint(position:Vector3D):BooleanMethod for calculating whether the given position is contained within the bounding volume.
Parameters
position:Vector3D — The position in local coordinates to be checked.
|
Boolean — A Boolean value representing the detection of a contained position.
|
| createBoundingRenderable | () | method |
override protected function createBoundingRenderable():WireframePrimitiveBaseReturnsWireframePrimitiveBase |
| fromExtremes | () | method |
override public function fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):voidSets the bounds to the given extrema.
Parameters
minX:Number — The minimum x value of the bounds
| |
minY:Number — The minimum y value of the bounds
| |
minZ:Number — The minimum z value of the bounds
| |
maxX:Number — The maximum x value of the bounds
| |
maxY:Number — The maximum y value of the bounds
| |
maxZ:Number — The maximum z value of the bounds
|
| isInFrustum | () | method |
override public function isInFrustum(mvpMatrix:Matrix3D):BooleanTests if the bounds are in the camera frustum.
Parameters
mvpMatrix: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 |
override public function nullify():voidSets the bounds to zero size.
| rayIntersection | () | method |
override public function rayIntersection(position:Vector3D, direction:Vector3D, targetNormal:Vector3D):NumberParameters
position:Vector3D | |
direction:Vector3D | |
targetNormal:Vector3D |
Number |
| updateBoundingRenderable | () | method |
override protected function updateBoundingRenderable():void