All angles below are in radians. An angle r
in radians has measure 180 * r / Math.PI
in degrees.
Math.sin(r);
This will return the sine of r
, a value between -1 and 1.
Math.asin(r);
This will return the arcsine (the reverse of the sine) of r
.
Math.asinh(r)
This will return the hyperbolic arcsine of r
.
Math.cos(r);
This will return the cosine of r
, a value between -1 and 1
Math.acos(r);
This will return the arccosine (the reverse of the cosine) of r
.
Math.acosh(r);
This will return the hyperbolic arccosine of r
.
Math.tan(r);
This will return the tangent of r
.
Math.atan(r);
This will return the arctangent (the reverse of the tangent) of r
. Note that it will return an angle in radians between -π/2
and π/2
.