Three.JS uses the
Cartesian coordinate system which is invented in around
17th Centuary and named as Rene
Descartesand then the Cartesian bit came from Latin version of Rene's last name
Cartesias. The simple graph contains the two axis these axis can be referred to the X and Y axis the image below demonstrates the sample graph.
In the above graph which can referred to 0,0 and is also known as origin.
If user working with the
CSS then the origin moves to the top left corner as shown in the image below.
For the Three.JS and WebGL user need to use the normal co ordinate model which contains the x and y axis with origin as shown in below image.
If user working with the 3D user need another axis to represent the object depth position, the third axis is the Z axis. Using these three axis user can refer any position using three numbers of X, y, Z axis the image as shown below.
In 3D graph 0, 0, 0, refers to the exact center of the screen or the or the origin. The image is as shown below.
The X+ value such as 50, 0, 0 and the position should be towards right of the origin as shown in below image.
The X- value -50,0,0, then the object will move toward left of the origin as shown in below image.
If the user have the -X and -Y values such as -50, -50, 0 then the object should toward Z+ direction as shown in below image.