Package | away3d.bounds |
Class | public class NullBounds |
Inheritance | NullBounds BoundingVolumeBase Object |
Method | Defined By | ||
---|---|---|---|
NullBounds(alwaysIn:Boolean = true, renderable:WireframePrimitiveBase = null) | NullBounds | ||
classifyToPlane(plane:Plane3D):int [override] | NullBounds | ||
[override] | NullBounds | ||
containsPoint(position:Vector3D):Boolean
Method for calculating whether the given position is contained within the bounding volume. | BoundingVolumeBase | ||
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. | 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 | ||
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 | ||
nullify():void
Sets the bounds to zero size. | BoundingVolumeBase | ||
overlaps(bounds:BoundingVolumeBase):Boolean
Tests if the bounds overlap other bounds, treating both bounds as AABBs. | BoundingVolumeBase | ||
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 |
Method | Defined By | ||
---|---|---|---|
[override] | NullBounds | ||
updateAABBPoints():void | BoundingVolumeBase | ||
updateBoundingRenderable():void | BoundingVolumeBase |
NullBounds | () | Constructor |
public function NullBounds(alwaysIn:Boolean = true, renderable:WireframePrimitiveBase = null)
alwaysIn:Boolean (default = true )
| |
renderable:WireframePrimitiveBase (default = null )
|
classifyToPlane | () | method |
clone | () | method |
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
|
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 |
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 |