Packageaway3d.core.geom
Classpublic class Frustum
InheritanceFrustum Inheritance Object



Public Properties
 PropertyDefined By
  planes : Vector.<Plane3D>
Frustum
Public Methods
 MethodDefined By
  
Creates a frustum consisting of 6 planes in 3d space.
Frustum
  
classifyAABB(points:Array):int
Classify this axis aligned bounding box against this frustum
Frustum
  
Classify this Object3D against this frustum
Frustum
  
classifyRadius(radius:Number):int
Classify this radius against this frustum
Frustum
  
classifySphere(center:Vector3D, radius:Number):int
Classify this sphere against this frustum
Frustum
  
extractFromMatrix(m:Matrix3D):void
Extract this frustum's plane from the 4x4 projection matrix m.
Frustum
Public Constants
 ConstantDefined By
  BOTTOM : int = 3
[static]
Frustum
  FAR : int = 5
[static]
Frustum
  IN : int = 1
[static]
Frustum
  INTERSECT : int = 2
[static]
Frustum
  LEFT : int = 0
[static]
Frustum
  NEAR : int = 4
[static]
Frustum
  OUT : int = 0
[static]
Frustum
  RIGHT : int = 1
[static]
Frustum
  TOP : int = 2
[static]
Frustum
Property Detail
planesproperty
public var planes:Vector.<Plane3D>

Constructor Detail
Frustum()Constructor
public function Frustum()

Creates a frustum consisting of 6 planes in 3d space.

####INIT####
Method Detail
classifyAABB()method
public function classifyAABB(points:Array):int

Classify this axis aligned bounding box against this frustum

Parameters

points:Array

Returns
int — int Frustum.IN, Frustum.OUT or Frustum.INTERSECT
classifyObject3D()method 
public function classifyObject3D(obj:Object3D):int

Classify this Object3D against this frustum

Parameters

obj:Object3D

Returns
int — int Frustum.IN, Frustum.OUT or Frustum.INTERSECT
classifyRadius()method 
public function classifyRadius(radius:Number):int

Classify this radius against this frustum

Parameters

radius:Number

Returns
int — int Frustum.IN, Frustum.OUT or Frustum.INTERSECT
classifySphere()method 
public function classifySphere(center:Vector3D, radius:Number):int

Classify this sphere against this frustum

Parameters

center:Vector3D
 
radius:Number

Returns
int — int Frustum.IN, Frustum.OUT or Frustum.INTERSECT
extractFromMatrix()method 
public function extractFromMatrix(m:Matrix3D):void

Extract this frustum's plane from the 4x4 projection matrix m.

Parameters

m:Matrix3D

Constant Detail
BOTTOMConstant
public static const BOTTOM:int = 3

FARConstant 
public static const FAR:int = 5

INConstant 
public static const IN:int = 1

INTERSECTConstant 
public static const INTERSECT:int = 2

LEFTConstant 
public static const LEFT:int = 0

NEARConstant 
public static const NEAR:int = 4

OUTConstant 
public static const OUT:int = 0

RIGHTConstant 
public static const RIGHT:int = 1

TOPConstant 
public static const TOP:int = 2