javascript - How can I get sin, cos, and tan to use degrees instead of radians? - Stack Overflow
You can use a function like this to do the conversion: function toDegrees (angle) { return angle * (180 / Math.PI); } Note that functions like sin, cos, and so on do not return angles, they take angles as input. It seems to me that it would be more useful...