Packageaway3d.cameras.lenses
Classpublic class LensBase
SubclassesOrthographicLens, OrthographicOffCenterLens, PerspectiveLens

An abstract base class for all lens classes. Lens objects provides a projection matrix that transforms 3D geometry to normalized homogeneous coordinates.

Public Properties
 PropertyDefined by
  far : Number
The distance to the far plane of the frustum.
LensBase
  frustumCorners : Vector
[read-only] Retrieves the corner points of the lens frustum.
LensBase
  matrix : Matrix3D
[read-only] The projection matrix that transforms 3D geometry to normalized homogeneous coordinates.
LensBase
  near : Number
The distance to the near plane of the frustum.
LensBase
Protected Properties
 PropertyDefined by
  _aspectRatio : Number = 1
LensBase
  _far : Number = 3000
LensBase
  _frustumCorners : Vector
LensBase
  _matrix : Matrix3D
LensBase
  _near : Number = 20
LensBase
Public Methods
 MethodDefined by
  
Creates a new LensBase object.
LensBase
  
unproject(mX:Number, mY:Number, mZ:Number):Vector3D
LensBase
Protected Methods
 MethodDefined by
  
Invalidates the projection matrix, which will cause it to be updated on the next request.
LensBase
  
updateMatrix():void
Updates the matrix
LensBase
Property detail
_aspectRatioproperty
protected var _aspectRatio:Number = 1
aspectRatioproperty 
aspectRatio:Number  [read-write]Implementation
    arcane function get aspectRatio():Number
    arcane function set aspectRatio(value:Number):void
_farproperty 
protected var _far:Number = 3000
farproperty 
far:Number  [read-write]

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):void
_frustumCornersproperty 
protected var _frustumCorners:Vector
frustumCornersproperty 
frustumCorners:Vector  [read-only]

Retrieves the corner points of the lens frustum.

Implementation
    public function get frustumCorners():Vector
_matrixproperty 
protected var _matrix:Matrix3D
matrixproperty 
matrix:Matrix3D  [read-only]

The projection matrix that transforms 3D geometry to normalized homogeneous coordinates.

Implementation
    public function get matrix():Matrix3D
_nearproperty 
protected var _near:Number = 20
nearproperty 
near:Number  [read-write]

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):void
onMatrixUpdateproperty 
arcane var onMatrixUpdate:Function
Constructor detail
LensBase()constructor
public function LensBase() Init Parameters
Method detail
invalidateMatrix()method
protected function invalidateMatrix():void

Invalidates the projection matrix, which will cause it to be updated on the next request.

unproject()method 
public function unproject(mX:Number, mY:Number, mZ:Number):Vector3D Parameters
mX:Number
 
mY:Number
 
mZ:Number

Returns
Vector3D
updateMatrix()method 
protected function updateMatrix():void

Updates the matrix

Wiki link
Click to go to the wiki page for 'away3d.cameras.lenses.LensBase'

Code examples

Comments