Working with Graphic Elements > Classes > Projection
Namespace: PP;
Projection
The Projection class is used to work with a 3D projection.
PP.initClass(PP.Projection, PP.Object, "PP.Projection");
Constructor name | Brief description | |
![]() |
Projection | The Projection constructor creates an instance of the Projection class. |
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. |
Property name | Brief description | |
![]() |
The Id property determines a repository object identifier. |
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. |
![]() |
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. |
![]() |
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: