|
Trigo : javascript VS Math Expression = radians VS degres ;)Perhaps i forget something, but i have just discovered that the javascript patch return Math.trigo functions in RADIANS while the math expression return DEGRES ex with 90 as input : Both are correct, but when you convert code to expression or vice versa sometimes it can take time before you start to understand why it's not working ;) So to have Math.sin in degres with javascript you have to do : As as I have lost 3 hours to understand it, I hope perhaps this will be helpful for someone :)
|
Hey this comes up time to time Yanamano you're not the first to lose time on it!
cool i was messing with these differences yesterday so its nice to see this today.