Two very simple operations that you may have to deal with if writing a JavaScript that deals with trigonometry are Mathdegrees and Mathradians. Degree Math PI 180. Function radToDegrad return rad MathPI 180.
Function degrees_to_radiansdegrees var pi MathPI.
Mathsinx returns the sine a value between -1 and 1 of the angle x given in radians. Cos JavaScript Gets the cosine of an angle. Function getTanFromDegrees degrees return Mathtan degrees MathPI 180. And degree is.