28.04.2012, 17:09
On the unit circle
To get to the correct x we need cos and for y we need sin
The only thing we need to consider in sa-mp is that 0 degrees is 90 degrees in the unit circle, also we use
Another notation for that would be
In the end we just add these cordinates to our original position
To get to the correct x we need cos and for y we need sin
Код:
x = cos(angle) y = sin(angle)
Код:
x = cos(angle + 90) y = sin(angle + 90)
Код:
x = -sin(angle) y = cos(angle)
Код:
x = x - sin(angle) y = y + cos(angle)