Packageaway3d.cameras.lenses
Classpublic class AbstractLens
SubclassesOrthogonalLens, PerspectiveLens, SphericalLens, ZoomFocusLens

Abstract lens for resolving perspective using the Camera3D object's position and properties

Protected Properties
 PropertyDefined by
  _camera : Camera3D
AbstractLens
  _cameraVarsStore : CameraVarsStore
AbstractLens
  classification : int
AbstractLens
  _clipBottom : Number
AbstractLens
  _clipHeight : Number
AbstractLens
  _clipLeft : Number
AbstractLens
  _clipping : Clipping
AbstractLens
  _clipRight : Number
AbstractLens
  _clipTop : Number
AbstractLens
  _clipWidth : Number
AbstractLens
  _far : Number
AbstractLens
  _focusOverZoom : Number
AbstractLens
  _frustum : Frustum
AbstractLens
  _len : Number
AbstractLens
  _molehillMatrix : Matrix3D
AbstractLens
  _near : Number
AbstractLens
  _persp : Number
AbstractLens
  _plane : Plane3D
AbstractLens
  _projectionMatrix : Matrix3D
AbstractLens
  _rawData : Vector
AbstractLens
  _screenMatrix : Matrix3D
AbstractLens
  _scz : Number
AbstractLens
  _sw : Number
AbstractLens
  _sx : Number
AbstractLens
  _sy : Number
AbstractLens
  _sz : Number
AbstractLens
  _vertex : Vertex
AbstractLens
  _view : View3D
AbstractLens
  view : Matrix3D
AbstractLens
  viewTransform : Matrix3D
AbstractLens
  _vx : Number
AbstractLens
  _vy : Number
AbstractLens
  _vz : Number
AbstractLens
  _zoom2 : Number
AbstractLens
Public Methods
 MethodDefined by
  
getPerspective(screenZ:Number):Number
Returns the perspective scaling value for a distance z from the camera
AbstractLens
Protected Constants
 ConstantDefined by
  toDEGREES : Number = 57.29577951308232
AbstractLens
  toRADIANS : Number = 0.017453292519943295
AbstractLens
Property detail
_cameraproperty
protected var _camera:Camera3D
_cameraVarsStoreproperty 
protected var _cameraVarsStore:CameraVarsStore
classificationproperty 
protected var classification:int
_clipBottomproperty 
protected var _clipBottom:Number
_clipHeightproperty 
protected var _clipHeight:Number
_clipLeftproperty 
protected var _clipLeft:Number
_clippingproperty 
protected var _clipping:Clipping
_clipRightproperty 
protected var _clipRight:Number
_clipTopproperty 
protected var _clipTop:Number
_clipWidthproperty 
protected var _clipWidth:Number
_farproperty 
protected var _far:Number
_focusOverZoomproperty 
protected var _focusOverZoom:Number
_frustumproperty 
protected var _frustum:Frustum
_lenproperty 
protected var _len:Number
_molehillMatrixproperty 
protected var _molehillMatrix:Matrix3D
_nearproperty 
protected var _near:Number
_perspproperty 
protected var _persp:Number
_planeproperty 
protected var _plane:Plane3D
_projectionMatrixproperty 
protected var _projectionMatrix:Matrix3D
_rawDataproperty 
protected var _rawData:Vector
_screenMatrixproperty 
protected var _screenMatrix:Matrix3D
_sczproperty 
protected var _scz:Number
_swproperty 
protected var _sw:Number
_sxproperty 
protected var _sx:Number
_syproperty 
protected var _sy:Number
_szproperty 
protected var _sz:Number
_vertexproperty 
protected var _vertex:Vertex
_viewproperty 
protected var _view:View3D
viewproperty 
protected var view:Matrix3D
viewTransformproperty 
protected var viewTransform:Matrix3D
_vxproperty 
protected var _vx:Number
_vyproperty 
protected var _vy:Number
_vzproperty 
protected var _vz:Number
_zoom2property 
protected var _zoom2:Number
Method detail
getPerspective()method
public function getPerspective(screenZ:Number):Number

Returns the perspective scaling value for a distance z from the camera

Parameters
screenZ:Number — The screenZ of the point

Returns
Number — The perspetive scaling value.
Constant detail
toDEGREESconstant
protected const toDEGREES:Number = 57.29577951308232
toRADIANSconstant 
protected const toRADIANS:Number = 0.017453292519943295
Wiki link
Click to go to the wiki page for 'away3d.cameras.lenses.AbstractLens'

Code examples

Comments