Degrees and radian...
#1

Please, how can I convert degrees to radian and radian to degrees? Thanks..
Reply
#2

No one know? :O
Reply
#3

mh

360° = 2pi
x° = ypi

x° = (ypi * 360°) / 2pi;
ypi = (x° * 2pi) / 360°;

and with some simplifications
pawn Код:
#define DegToRad(%1) (%1 / 57.2957795)
#define RadToDeg(%1) (%1 * 57.2957795)
Note: the results arent 100% correct because - like you can see - it divides or multiplies with a number with seven fractional digits
Reply
#4

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)