Packageaway3d.bounds
Classpublic class NullBounds
InheritanceNullBounds Inheritance BoundingVolumeBase Inheritance Object

NullBounds represents a debug bounding "volume" that is either considered always in, or always out of the frustum. NullBounds is useful for entities that are always considered in the frustum, such as directional lights or skyboxes.



Public Properties
 PropertyDefined By
 InheritedaabbPoints : Vector.<Number>
[read-only] Returns a vector of values representing the concatenated cartesian triplet of the 8 axial extremities of the bounding volume.
BoundingVolumeBase
 InheritedboundingRenderable : 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
 Inheritedmax : Vector3D
[read-only] The maximum extreme of the bounds
BoundingVolumeBase
 Inheritedmin : Vector3D
[read-only] The minimum extreme of the bounds
BoundingVolumeBase
Protected Properties
 PropertyDefined By
 Inherited_aabbPoints : Vector.<Number>
BoundingVolumeBase
 Inherited_aabbPointsDirty : Boolean = true
BoundingVolumeBase
 Inherited_boundingRenderable : WireframePrimitiveBase
BoundingVolumeBase
 Inherited_max : Vector3D
BoundingVolumeBase
 Inherited_min : Vector3D
BoundingVolumeBase
Public Methods
 MethodDefined By
  
NullBounds(alwaysIn:Boolean = true, renderable:WireframePrimitiveBase = null)
NullBounds
  
[override]
NullBounds
  
[override]
NullBounds
 Inherited
containsPoint(position:Vector3D):Boolean
Method for calculating whether the given position is contained within the bounding volume.
BoundingVolumeBase
 Inherited
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.
NullBounds
  
fromGeometry(geometry:Geometry):void
[override] Updates the bounds to fit a Geometry object.
NullBounds
  
fromSphere(center:Vector3D, radius:Number):void
[override] Sets the bound to fit a given sphere.
NullBounds
 Inherited
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.
NullBounds
 Inherited
nullify():void
Sets the bounds to zero size.
BoundingVolumeBase
 Inherited
Tests if the bounds overlap other bounds, treating both bounds as AABBs.
BoundingVolumeBase
 Inherited
rayIntersection(position:Vector3D, direction:Vector3D, targetNormal:Vector3D):Number
Method for calculating whether an intersection of the given ray occurs with the bounding volume.
BoundingVolumeBase
  
transformFrom(bounds:BoundingVolumeBase, matrix:Matrix3D):void
[override]
NullBounds
Protected Methods
 MethodDefined By
  
[override]
NullBounds
 Inherited
BoundingVolumeBase
 Inherited
BoundingVolumeBase
Constructor Detail
NullBounds()Constructor
public function NullBounds(alwaysIn:Boolean = true, renderable:WireframePrimitiveBase = null)



Parameters
alwaysIn:Boolean (default = true)
 
renderable:WireframePrimitiveBase (default = null)
Method Detail
classifyToPlane()method
override public function classifyToPlane(plane:Plane3D):int

Parameters

plane:Plane3D

Returns
int
clone()method 
override public function clone():BoundingVolumeBase

Returns
BoundingVolumeBase
createBoundingRenderable()method 
override protected function createBoundingRenderable():WireframePrimitiveBase

Returns
WireframePrimitiveBase
fromExtremes()method 
override 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 — 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

fromGeometry()method 
override 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 
override 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

isInFrustum()method 
override public function isInFrustum(planes:Vector.<Plane3D>, numPlanes:int):Boolean

Tests 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

Returns
Boolean — True if the bounding box is at least partially inside the frustum
transformFrom()method 
override public function transformFrom(bounds:BoundingVolumeBase, matrix:Matrix3D):void

Parameters

bounds:BoundingVolumeBase
 
matrix:Matrix3D