far:Number [read-write]Implementation
public function get far():Number
public function set far(value:Number):void
fov:Number [read-write]Implementation
public function get fov():Number
public function set fov(value:Number):void
near:Number [read-write]Implementation
public function get near():Number
public function set near(value:Number):void
ratio:Number [read-write]Implementation
public function get ratio():Number
public function set ratio(value:Number):void
public var transform:Matrix3D
public function FrustumCuller()
Constructor.
public function aabbInFrustum(object:DisplayObject3D, aabb:AxisAlignedBoundingBox, earlyOut:Boolean = true):int
Tests whether an axis aligned boundingbox is inside, outside or intersecting the frustum.
When earlyOut is set to true, the method returns INSIDE when a single point of the aabb is
inside the frustum (fast). Set earlyOut to false if you want to test for INTERSECT.
Parameters
Returns
| int — Integer indicating inside(1), outside(-1) or intersecting(0) the frustum.
|
public function initialize(fovY:Number = 60, ratio:Number = 1.333, near:Number = 1, far:Number = 5000):void
Intializes the frustum.
Parameters
| fovY:Number (default = 60) — Vertical Field Of View in degrees.
|
| |
| ratio:Number (default = 1.333) — Aspect ratio (ie: viewport.width / viewport.height).
|
| |
| near:Number (default = 1) — Distance to near plane (ie: camera.focus).
|
| |
| far:Number (default = 5000) — Distance to far plane.
|
public function pointInFrustum(x:Number, y:Number, z:Number):int
Tests whether a point is inside the frustum.
Parameters
| x:Number — x
|
| |
| y:Number — y
|
| |
| z:Number — z
|
Returns
| int — Integer indicating inside (1) or outside (-1) the frustum.
|
public function sphereInFrustum(obj:DisplayObject3D, boundingSphere:BoundingSphere):int
Tests whether a sphere is inside the frustum.
Parameters
Returns
| int — Integer indicating inside (1), outside (0) or intersecting (-1) the frustum.
|
public function testObject(obj:DisplayObject3D):int
Tests whether an object is inside the frustum.
Parameters
Returns
| int — Integer indicating inside(1), outside(-1) or intersecting(0)
|
public static const INSIDE:int = 1
public static const INTERSECT:int = 0
public static const OUTSIDE:int = -1
http://blog.papervision3d.org