Packageaway3d.bounds
Classpublic class AxisAlignedBoundingBox
InheritanceAxisAlignedBoundingBox Inheritance BoundingVolumeBase

AxisAlignedBoundingBox represents a bounding box volume that has its planes aligned to the local coordinate axes of the bounded object. This is useful for most meshes.

Public Properties
 PropertyDefined by
 InheritedaabbPoints : Vector
BoundingVolumeBase
 Inheritedmax : Vector3D
The maximum extrema of the bounds
BoundingVolumeBase
 Inheritedmin : Vector3D
The minimum extrema of the bounds
BoundingVolumeBase
Protected Properties
 PropertyDefined by
 Inherited_aabbPoints : Vector
BoundingVolumeBase
 Inherited_aabbPointsDirty : Boolean = true
BoundingVolumeBase
 Inherited_max : Vector3D
BoundingVolumeBase
 Inherited_min : Vector3D
BoundingVolumeBase
Public Methods
 MethodDefined by
  
Creates a new AxisAlignedBoundingBox object.
AxisAlignedBoundingBox
  
Clones the current BoundingVolume object
AxisAlignedBoundingBox
  
fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):void
Sets the bounds to the given extrema
AxisAlignedBoundingBox
 Inherited
fromGeometry(geometry:Geometry):void
Updates the bounds to fit a Geometry object.
BoundingVolumeBase
 Inherited
fromSphere(center:Vector3D, radius:Number):void
Sets the bound to fit a given sphere.
BoundingVolumeBase
 Inherited
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.
AxisAlignedBoundingBox
  
nullify():void
Sets the bounds to zero size.
AxisAlignedBoundingBox
Protected Methods
 MethodDefined by
 Inherited
BoundingVolumeBase
Constructor detail
AxisAlignedBoundingBox()constructor
public function AxisAlignedBoundingBox() Init Parameters
Method detail
clone()method
public override function clone():BoundingVolumeBase

Clones the current BoundingVolume object

Returns
BoundingVolumeBase — 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

Parameters
minX:Number
 
minY:Number
 
minZ:Number
 
maxX:Number
 
maxY:Number
 
maxZ:Number
isInFrustum()method 
public override function isInFrustum(mvpMatrix:Matrix3D):Boolean

Tests 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.

Returns
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.

Wiki link
Click to go to the wiki page for 'away3d.bounds.AxisAlignedBoundingBox'

Code examples

Comments