An abstract base class for all lens classes. Lens objects provides a projection matrix that transforms 3D geometry to normalized homogeneous coordinates.
protected var _aspectRatio:Number = 1protected var _far:Number = 3000protected var _frustumCorners:Vector.<Number>protected var _matrix:Matrix3Dprotected var _matrixInvalid:Boolean = trueprotected var _near:Number = 20aspectRatio:Number Implementation arcane function get aspectRatio():Number arcane function set aspectRatio(value:Number):voidfar:Number
The distance to the far plane of the frustum. Anything beyond the far plane will not be rendered.
Implementation public function get far():Number public function set far(value:Number):voidfrustumCorners:Vector.<Number>
Retrieves the corner points of the lens frustum.
Implementation public function get frustumCorners():Vector.<Number> public function set frustumCorners(value:Vector.<Number>):voidmatrix:Matrix3D
The projection matrix that transforms 3D geometry to normalized homogeneous coordinates.
Implementation public function get matrix():Matrix3D public function set matrix(value:Matrix3D):voidnear:Number
The distance to the near plane of the frustum. Anything behind near plane will not be rendered.
Implementation public function get near():Number public function set near(value:Number):voidunprojectionMatrix:Matrix3D [read-only]
Implementation public function get unprojectionMatrix():Matrix3Dpublic function LensBase()
Creates a new LensBase object.
protected function invalidateMatrix():void
Invalidates the projection matrix, which will cause it to be updated on the next request.
public function project(point3d:Vector3D):Vector3D Parameters
Returns public function unproject(mX:Number, mY:Number, mZ:Number):Vector3D
Calculates the position of the given normalized coordinates relative to the camera.
Parameters
| mX:Number — The x coordinate relative to the View3D. -1 corresponds to the utter left side of the viewport, 1 to the right.
|
| |
| mY:Number — The y coordinate relative to the View3D. -1 corresponds to the top side of the viewport, 1 to the bottom.
|
| |
| mZ:Number — The distance from the projection plane.
|
Returns | Vector3D — The scene position of the given screen coordinates.
|
protected function updateMatrix():void
Updates the matrix
Tue Jul 17 2012, 10:37 AM +01:00