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


Inherited from LensBase -> EventDispatcher.


Can be created with method new:

Lib.Away3D.Cameras.Lenses.PerspectiveLens.new(fieldOfView)

Creates a new PerspectiveLens object.

fieldOfView - (default = 60) - The vertical field of view of the projection.


Created PerspectiveLens object has properties:

fieldOfView

The vertical field of view of the projection in degrees.

focalLength

The focal length of the projection in units of viewport height.


methods:

clone()

[override]


unproject(nX, nY, sZ)

[override] Calculates the scene position relative to the camera of the given normalized coordinates in screen space. (Vector3D)

nX - The normalised x coordinate in screen space, -1 corresponds to the left edge of the viewport, 1 to the right.

nY - The normalised y coordinate in screen space, -1 corresponds to the top edge of the viewport, 1 to the bottom.

sZ - The z coordinate in screen space, representing the distance into the screen.


Created with the Personal Edition of HelpNDoc: Free PDF documentation generator