Projection

Namespace: PP;

Inheritance hierarchy

Object

Projection

Description

The Projection class is used to work with a 3D projection.

Syntax

PP.initClass(PP.Projection, PP.Object, "PP.Projection");

Constructor

  Constructor name Brief description
Projection The Projection constructor creates an instance of the Projection class.

Methods

  Method name Brief description
getFrustum The getFrustum method is used to get partial pyramid in world coordinates from a rectangle in screen coordinates.
getRay The getRay method returns a ray that comes out from the specified point.
ortho The ortho method sets orthographic projection.
perspective The perspective method sets perspective projection.
project The project method transforms world coordinates of vector to screen ones.
rotate The rotate method rotates a coordinate system.
scale The scale method scales a coordinate system.
setModelMatrix The setModelMatrix method sets model and view matrix.
translate The translate method offsets a coordinate system.
unProject The unProject method transforms screen coordinates of vector to world ones.

Properties inherited from the class Object

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getId The getId method returns repository object identifier.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setId The setId method determines a repository object identifier.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP