| Package | away3d.cameras.lenses |
| Class | public class OrthographicOffCenterLens |
| Inheritance | OrthographicOffCenterLens LensBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | far : Number
The distance to the far plane of the frustum. | LensBase | |
![]() | frustumCorners : Vector.<Number>
Retrieves the corner points of the lens frustum. | LensBase | |
![]() | matrix : Matrix3D
The projection matrix that transforms 3D geometry to normalized homogeneous coordinates. | LensBase | |
| maxX : Number | OrthographicOffCenterLens | ||
| maxY : Number | OrthographicOffCenterLens | ||
| minX : Number | OrthographicOffCenterLens | ||
| minY : Number | OrthographicOffCenterLens | ||
![]() | near : Number
The distance to the near plane of the frustum. | LensBase | |
![]() | unprojectionMatrix : Matrix3D [read-only] | LensBase | |
| Method | Defined By | ||
|---|---|---|---|
OrthographicOffCenterLens(minX:Number, maxX:Number, minY:Number, maxY:Number)
Creates a new OrthogonalLens object. | OrthographicOffCenterLens | ||
[override] | OrthographicOffCenterLens | ||
![]() | project(point3d:Vector3D):Vector3D
Calculates the normalised position in screen space of the given scene position relative to the camera. | LensBase | |
unproject(nX:Number, nY:Number, sZ:Number):Vector3D [override]
Calculates the scene position relative to the camera of the given normalized coordinates in screen space. | OrthographicOffCenterLens | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | invalidateMatrix():void
Invalidates the projection matrix, which will cause it to be updated on the next request. | LensBase | |
updateMatrix():void [override]
Updates the matrix
| OrthographicOffCenterLens | ||
| maxX | property |
maxX:Number public function get maxX():Number public function set maxX(value:Number):void| maxY | property |
maxY:Number public function get maxY():Number public function set maxY(value:Number):void| minX | property |
minX:Number public function get minX():Number public function set minX(value:Number):void| minY | property |
minY:Number public function get minY():Number public function set minY(value:Number):void| OrthographicOffCenterLens | () | Constructor |
public function OrthographicOffCenterLens(minX:Number, maxX:Number, minY:Number, maxY:Number)Creates a new OrthogonalLens object.
ParametersminX:Number — The vertical field of view of the projection.
| |
maxX:Number | |
minY:Number | |
maxY:Number |
| clone | () | method |
| unproject | () | method |
override public function unproject(nX:Number, nY:Number, sZ:Number):Vector3DCalculates the scene position relative to the camera of the given normalized coordinates in screen space.
Parameters
nX:Number — The normalised x coordinate in screen space, -1 corresponds to the left edge of the viewport, 1 to the right.
| |
nY:Number — The normalised y coordinate in screen space, -1 corresponds to the top edge of the viewport, 1 to the bottom.
| |
sZ:Number — The z coordinate in screen space, representing the distance into the screen.
|
Vector3D — The scene position relative to the camera of the given screen coordinates.
|
| updateMatrix | () | method |
override protected function updateMatrix():voidUpdates the matrix