Packageaway3d.core.geom
Classpublic class Frustum

Public Properties
 PropertyDefined by
  planes : Array
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:Number3D, radius:Number):int
Classify this sphere against this frustum
Frustum
  
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:Array
Constructor detail
Frustum()constructor
public function Frustum() Init Parameters
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:Number3D, radius:Number):int

Classify this sphere against this frustum

Parameters
center:Number3D
 
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
Wiki link
Click to go to the wiki page for 'away3d.core.geom.Frustum'

Code examples

Comments