Package | away3d.bounds |
Class | public class BoundingSphere |
Inheritance | BoundingSphere BoundingVolumeBase Object |
Property | Defined By | ||
---|---|---|---|
aabbPoints : Vector.<Number> [read-only]
Returns a vector of values representing the concatenated cartesian triplet of the 8 axial extremities of the bounding volume. | BoundingVolumeBase | ||
boundingRenderable : 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 | ||
max : Vector3D [read-only]
The maximum extreme of the bounds
| BoundingVolumeBase | ||
min : Vector3D [read-only]
The minimum extreme of the bounds
| BoundingVolumeBase | ||
radius : Number [read-only]
The radius of the bounding sphere, calculated from the contents of the entity. | BoundingSphere |
Method | Defined By | ||
---|---|---|---|
Creates a new BoundingSphere object
| BoundingSphere | ||
[override]
Clones the current BoundingVolume object
| BoundingSphere | ||
containsPoint(position:Vector3D):Boolean [override]
Method for calculating whether the given position is contained within the bounding volume. | BoundingSphere | ||
disposeRenderable():void
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. | BoundingSphere | ||
fromGeometry(geometry:Geometry):void
Updates the bounds to fit a Geometry object. | BoundingVolumeBase | ||
fromSphere(center:Vector3D, radius:Number):void [override]
Sets the bound to fit a given sphere. | BoundingSphere | ||
fromVertices(vertices:Vector.<Number>):void
Updates the bounds to fit a list of vertices
| BoundingVolumeBase | ||
isInFrustum(mvpMatrix:Matrix3D):Boolean [override]
todo: pass planes?
Tests if the bounds are in the camera frustum. | BoundingSphere | ||
nullify():void [override]
Sets the bounds to zero size. | BoundingSphere | ||
rayIntersection(position:Vector3D, direction:Vector3D, targetNormal:Vector3D):Number [override] | BoundingSphere |
Method | Defined By | ||
---|---|---|---|
[override] | BoundingSphere | ||
updateAABBPoints():void | BoundingVolumeBase | ||
updateBoundingRenderable():void [override] | BoundingSphere |
radius | property |
radius:Number
[read-only] The radius of the bounding sphere, calculated from the contents of the entity.
public function get radius():Number
BoundingSphere | () | Constructor |
public function BoundingSphere()
Creates a new BoundingSphere
object
clone | () | method |
override public function clone():BoundingVolumeBase
Clones the current BoundingVolume object
ReturnsBoundingVolumeBase — An exact duplicate of this object
|
containsPoint | () | method |
override public function containsPoint(position:Vector3D):Boolean
Method for calculating whether the given position is contained within the bounding volume.
Parameters
position:Vector3D — The position in local coordinates to be checked.
|
Boolean — A Boolean value representing the detection of a contained position.
|
createBoundingRenderable | () | method |
override protected function createBoundingRenderable():WireframePrimitiveBase
ReturnsWireframePrimitiveBase |
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
|
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(mvpMatrix:Matrix3D):Boolean
todo: pass planes? 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.
|
Boolean — True if the bounding box is at least partially inside the frustum
|
nullify | () | method |
override public function nullify():void
Sets the bounds to zero size.
rayIntersection | () | method |
override public function rayIntersection(position:Vector3D, direction:Vector3D, targetNormal:Vector3D):Number
Parameters
position:Vector3D | |
direction:Vector3D | |
targetNormal:Vector3D |
Number |
updateBoundingRenderable | () | method |
override protected function updateBoundingRenderable():void