| 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 | ||
classifyToPlane(plane:Plane3D):int [override] | AxisAlignedBoundingBox | ||
[override]
Clones the current BoundingVolume object
| AxisAlignedBoundingBox | ||
closestPointToPoint(point:Vector3D, target:Vector3D = null):Vector3D
Finds the closest point on the bounding volume to another given point. | 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(planes:Vector.<Plane3D>, numPlanes:int):Boolean [override]
Tests if the bounds are in the camera frustum. | AxisAlignedBoundingBox | ||
nullify():void [override]
Sets the bounds to zero size. | AxisAlignedBoundingBox | ||
![]() | overlaps(bounds:BoundingVolumeBase):Boolean
Tests if the bounds overlap other bounds, treating both bounds as AABBs. | BoundingVolumeBase | |
rayIntersection(position:Vector3D, direction:Vector3D, targetNormal:Vector3D):Number [override] | AxisAlignedBoundingBox | ||
transformFrom(bounds:BoundingVolumeBase, matrix:Matrix3D):void [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.
| classifyToPlane | () | method |
| 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):Vector3DFinds the closest point on the bounding volume to another given point. This can be used for maximum error calculations for content within a given bound.
Parameters
point:Vector3D — The point for which to find the closest point on the bounding volume
| |
target:Vector3D (default = null) — An optional Vector3D to store the result to prevent creating a new object.
|
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(planes:Vector.<Plane3D>, numPlanes:int):BooleanTests if the bounds are in the camera frustum.
Parameters
planes:Vector.<Plane3D> — The model view projection matrix for the object to which this bounding box belongs.
| |
numPlanes:int |
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 |
| transformFrom | () | method |
override public function transformFrom(bounds:BoundingVolumeBase, matrix:Matrix3D):voidParameters
bounds:BoundingVolumeBase | |
matrix:Matrix3D |
| updateBoundingRenderable | () | method |
override protected function updateBoundingRenderable():void