Looking at a sample program, I noticed that they are using some mathematical calculations to determine the position of the Sphere. Specifically, they are utilizing THREE.Math.mapLinear()
. For instance, if the parameters passed are:
var x = THREE.Math.mapLinear(-70.16, -150, 150, 0, 1366);
the value of x
is resulting in 363.51.
Could someone clarify what exactly is going on here?