Package | away3d.cameras.lenses |
Class | public class PerspectiveOffCenterLens |
Inheritance | PerspectiveOffCenterLens ![]() ![]() |
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 | |
maxAngleX : Number | PerspectiveOffCenterLens | ||
maxAngleY : Number | PerspectiveOffCenterLens | ||
minAngleX : Number | PerspectiveOffCenterLens | ||
minAngleY : Number | PerspectiveOffCenterLens | ||
![]() | near : Number
The distance to the near plane of the frustum. | LensBase | |
![]() | unprojectionMatrix : Matrix3D [read-only] | LensBase |
Method | Defined By | ||
---|---|---|---|
PerspectiveOffCenterLens(minAngleX:Number = -40, maxAngleX:Number = 40, minAngleY:Number = -40, maxAngleY:Number = 40)
Creates a new PerspectiveLens object. | PerspectiveOffCenterLens | ||
[override] | PerspectiveOffCenterLens | ||
![]() | 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. | PerspectiveOffCenterLens |
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
| PerspectiveOffCenterLens |
maxAngleX | property |
maxAngleX:Number
public function get maxAngleX():Number
public function set maxAngleX(value:Number):void
maxAngleY | property |
maxAngleY:Number
public function get maxAngleY():Number
public function set maxAngleY(value:Number):void
minAngleX | property |
minAngleX:Number
public function get minAngleX():Number
public function set minAngleX(value:Number):void
minAngleY | property |
minAngleY:Number
public function get minAngleY():Number
public function set minAngleY(value:Number):void
PerspectiveOffCenterLens | () | Constructor |
public function PerspectiveOffCenterLens(minAngleX:Number = -40, maxAngleX:Number = 40, minAngleY:Number = -40, maxAngleY:Number = 40)
Creates a new PerspectiveLens object.
ParametersminAngleX:Number (default = -40 ) — The vertical field of view of the projection.
| |
maxAngleX:Number (default = 40 )
| |
minAngleY:Number (default = -40 )
| |
maxAngleY:Number (default = 40 )
|
clone | () | method |
unproject | () | method |
override public function unproject(nX:Number, nY:Number, sZ:Number):Vector3D
Calculates 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():void
Updates the matrix