Thread: Trigonometry...
View Single Post
Old 04-03-2010, 10:39 PM   #3 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

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...
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
maeltar (04-04-2010)