API sin

Computes trigonometric functions. sine = sin(degrees) cosine = cos(degrees) tangent = tan(degrees) sine = math.sin(radians) cosine = math.cos(radians) tangent = math.tan(radians) degrees = asin(sine) degrees = acos(cosine) degrees = atan(tangent) radians = math.asin(sine) radians = math.acos(cosine) radians = math.atan(tangent)

Arguments/Returns

 * degrees : - An angle expressed as 1/360 of a circle.
 * radians : - An angle expressed as 1/(2*pi) of a circle.
 * sine, cosine, tangent : - Ratios of lengths in a right-angled triangle.

Details

 * WoW was originally developed on Lua 4.0, when all common functions were in the global namespace.
 * Lua 5.0 introduced the  library and changed the trigonometric functions from degrees to radians.
 * Despite transitioning to a variant of Lua 5.1 and incorporating the math library with radians, WoW retains the original functions with degrees.