Packageaway3d.bounds
Classpublic class NullBounds
InheritanceNullBounds Inheritance BoundingVolumeBase

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
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
  
NullBounds
(alwaysIn:Boolean = true)
NullBounds
 Inherited
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
NullBounds
  
fromGeometry(geometry:Geometry):void
Updates the bounds to fit a Geometry object.
NullBounds
  
fromSphere(center:Vector3D, radius:Number):void
Sets the bound to fit a given sphere.
NullBounds
 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.
NullBounds
 Inherited
nullify():void
Sets the bounds to zero size.
BoundingVolumeBase
Protected Methods
 MethodDefined by
 Inherited
BoundingVolumeBase
Constructor detail
NullBounds()constructor
public function NullBounds(alwaysIn:Boolean = true)Parameters
alwaysIn:Boolean (default = true)
Init Parameters
Method detail
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
fromGeometry()method 
public override 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 override 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 
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
Wiki link
Click to go to the wiki page for 'away3d.bounds.NullBounds'

Code examples

Comments