Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API sin

Last wiki revision 2022-07-21

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)

  • 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.
  • 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.

The following links query Gethe's FrameXML clone on GitHub, or the Globe "wut?" tool on Townlong-Yak.

Source

https://warcraft.wiki.gg/wiki/API_sin · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.