class OrthographicOffCenterLens
package away3d.cameras.lenses
extends LensBase
Available on all platforms
The PerspectiveLens object provides a projection matrix that projects 3D geometry isometrically. This entails there is no perspective distortion, and lines that are parallel in the scene will remain parallel on the screen.
Constructor
new(minX:Float, maxX:Float, minY:Float, maxY:Float)
Creates a new OrthogonalLens 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.