Packageaway3d.bounds
Classpublic class BoundingVolumeBase
SubclassesAxisAlignedBoundingBox, BoundingSphere, NullBounds

An abstract base class for all bounding volume classes. It should not be instantiated directly.

Public Properties
 PropertyDefined 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
Protected Properties
 PropertyDefined by
  _aabbPoints : Vector
BoundingVolumeBase
  _aabbPointsDirty : Boolean = true
BoundingVolumeBase
  _max : Vector3D
BoundingVolumeBase
  _min : Vector3D
BoundingVolumeBase
Public Methods
 MethodDefined 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
  
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):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
Protected Methods
 MethodDefined by
  
BoundingVolumeBase
Property detail
_aabbPointsproperty
protected var _aabbPoints:Vector
aabbPointsproperty 
aabbPoints:Vector  [read-only]Implementation
    public function get aabbPoints():Vector
_aabbPointsDirtyproperty 
protected var _aabbPointsDirty:Boolean = true
_maxproperty 
protected var _max:Vector3D
maxproperty 
max:Vector3D  [read-only]

The maximum extrema of the bounds

Implementation
    public function get max():Vector3D
_minproperty 
protected var _min:Vector3D
minproperty 
min:Vector3D  [read-only]

The minimum extrema of the bounds

Implementation
    public function get min():Vector3D
Constructor detail
BoundingVolumeBase()constructor
public function BoundingVolumeBase() Init Parameters
Method detail
clone()method
public function clone():BoundingVolumeBase

Clones the current BoundingVolume object

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

Parameters
minX: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.

Parameters
geometry: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.

Parameters
center: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

Parameters
vertices:Vector — A Vector. of vertex data to be bounded.
isInFrustum()method 
public 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 function nullify():void

Sets the bounds to zero size.

updateAABBPoints()method 
protected function updateAABBPoints():void
Wiki link
Click to go to the wiki page for 'away3d.bounds.BoundingVolumeBase'

Code examples

Comments