Packageaway3d.cameras.lenses
Classpublic class PerspectiveLens
InheritancePerspectiveLens Inheritance LensBase

The PerspectiveLens object provides a projection matrix that projects 3D geometry with perspective distortion.

Public Properties
 PropertyDefined by
 Inheritedfar : Number
The distance to the far plane of the frustum.
LensBase
  fieldOfView : Number
The vertical field of view of the projection.
PerspectiveLens
 InheritedfrustumCorners : Vector
Retrieves the corner points of the lens frustum.
LensBase
 Inheritedmatrix : Matrix3D
The projection matrix that transforms 3D geometry to normalized homogeneous coordinates.
LensBase
 Inheritednear : Number
The distance to the near plane of the frustum.
LensBase
Protected Properties
 PropertyDefined by
 Inherited_aspectRatio : Number = 1
LensBase
 Inherited_far : Number = 3000
LensBase
 Inherited_frustumCorners : Vector
LensBase
 Inherited_matrix : Matrix3D
LensBase
 Inherited_near : Number = 20
LensBase
Public Methods
 MethodDefined by
  
PerspectiveLens
(fieldOfView:Number = 60)
Creates a new PerspectiveLens object.
PerspectiveLens
 Inherited
unproject(mX:Number, mY:Number, mZ:Number):Vector3D
LensBase
Protected Methods
 MethodDefined by
 Inherited
Invalidates the projection matrix, which will cause it to be updated on the next request.
LensBase
  
updateMatrix():void
Updates the matrix
PerspectiveLens
Property detail
fieldOfViewproperty
fieldOfView:Number  [read-write]

The vertical field of view of the projection.

Implementation
    public function get fieldOfView():Number
    public function set fieldOfView(value:Number):void
Constructor detail
PerspectiveLens()constructor
public function PerspectiveLens(fieldOfView:Number = 60)Parameters
fieldOfView:Number (default = 60) — The vertical field of view of the projection.
Init Parameters
Method detail
updateMatrix()method
protected override function updateMatrix():void

Updates the matrix

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

Code examples

Comments