Packageaway3d.bounds
Classpublic class BoundingSphere
InheritanceBoundingSphere Inheritance BoundingVolumeBase

BoundingSphere represents a spherical bounding volume defined by a center point and a radius? This bounding volume is useful for point lights.

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 BoundingSphere object
BoundingSphere
  
Clones the current BoundingVolume object
BoundingSphere
  
fromExtremes(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number):void
Sets the bounds to the given extrema
BoundingSphere
 Inherited
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.
BoundingSphere
 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.
BoundingSphere
  
nullify():void
Sets the bounds to zero size.
BoundingSphere
Protected Methods
 MethodDefined by
 Inherited
BoundingVolumeBase
Constructor detail
BoundingSphere()constructor
public function BoundingSphere() 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
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
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.BoundingSphere'

Code examples

Comments