class PerspectiveOffCenterLens
package away3d.cameras.lenses
extends LensBase
Available on all platforms
The PerspectiveLens object provides a projection matrix that projects 3D geometry with perspective distortion.
Constructor
new(minAngleX:Float = -40, maxAngleX:Float = 40, minAngleY:Float = -40, maxAngleY:Float = 40)
Creates a new PerspectiveLens object.
Parameters:
fieldOfView | The vertical field of view of the projection. |
|---|
Variables
Methods
unproject(nX:Float, nY:Float, sZ:Float, ?v:Vector3D):Vector3D
Calculates the scene position relative to the camera of the given normalized coordinates in screen space.
Parameters:
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. |
v | The destination Vector3D object |
Returns:
The scene position relative to the camera of the given screen coordinates.