04-03-2010, 10:39 PM
|
#3 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
PHP's sin($x) expects the value to be in radians. So, you should always send it in radians.
You can convert any angle in degrees to radians with this simple formula.
Code:
value * pi / 180
pi = 3.1415926535...
|
|
|
|