Packageaway3d.cameras.lenses
Classpublic class AbstractLens
InheritanceAbstractLens Inheritance Object
Subclasses OrthogonalLens, 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
  _near : Number
AbstractLens
  _persp : Number
AbstractLens
  _plane : Plane3D
AbstractLens
  _projectionMatrix : Matrix3D
AbstractLens
  _rawData : Vector.<Number>
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

_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

_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.<Number>

_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

_vxproperty 
protected var _vx:Number

_vyproperty 
protected var _vy:Number

_vzproperty 
protected var _vz:Number

_zoom2property 
protected var _zoom2:Number

classificationproperty 
protected var classification:int

viewproperty 
protected var view:Matrix3D

viewTransformproperty 
protected var viewTransform:Matrix3D

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