math
namespaceavailable in: camelotStatus in wowlua
38 functions: 38 implemented, 0 recorded, 0 guessed.
Functions
| function | what it does | status |
|---|---|---|
abs | Returns the absolute value of a number.not in Blizzard's documentation | implemented |
acos | Returns the arc cosine of a number, in radians. · by wowluanot in Blizzard's documentation | implemented |
asin | Returns the arc sine of a number, in radians. · by wowluanot in Blizzard's documentation | implemented |
atan | Returns the arc tangent of a number, in radians. Use math.atan2 to get the angle of a point in the right quadrant. · by wowluanot in Blizzard's documentation | implemented |
atan2 | Returns the arc tangent of y / x in radians, using the signs of both arguments to pick the quadrant. It takes y first, then x. · by wowluanot in Blizzard's documentation | implemented |
ceil | Returns the ceiling of a number.not in Blizzard's documentation | implemented |
clamp | Clamps a value to the inclusive range defined by the minimum and maximum values.(value: number, minimum: number, maximum: number): number | implemented |
cos | Returns the cosine of an angle given in radians. · by wowluanot in Blizzard's documentation | implemented |
cosh | Returns the hyperbolic cosine of a number. · by wowluanot in Blizzard's documentation | implemented |
deg | Converts an angle from radians to degrees. · by wowluanot in Blizzard's documentation | implemented |
exp | Returns the value e<sup>x</sup>.not in Blizzard's documentation | implemented |
floor | Returns the floor of a number.not in Blizzard's documentation | implemented |
fmod | Returns the remainder of the division of x by y that rounds the result (quotient) towards zero.not in Blizzard's documentation | implemented |
frexp | Splits a number into a mantissa m and an integer exponent e so that the number equals m * 2^e, with the absolute value of m in [0.5, 1) (or zero). · by wowluanot in Blizzard's documentation | implemented |
isfinite | Returns whether a value is finite.(value: number): boolean | implemented |
isinf | Returns whether a value is positive or negative infinity.(value: number): boolean | implemented |
isnan | Returns whether a value is NaN.(value: number): boolean | implemented |
ldexp | Returns m * 2^e for a mantissa m and an integer exponent e; the inverse of math.frexp. · by wowluanot in Blizzard's documentation | implemented |
lerp | Linearly interpolates between two values.(startValue: number, endValue: number, amount: number): number | implemented |
log | Returns the natural logarithm of a number. In WoW's Lua 5.1 it takes no base argument; divide by math.log(base) for other bases. · by wowluanot in Blizzard's documentation | implemented |
log10 | Returns the base-10 logarithm of a number. · by wowluanot in Blizzard's documentation | implemented |
max | Returns the largest of its numeric arguments. · by wowluanot in Blizzard's documentation | implemented |
min | Returns the smallest of its numeric arguments. · by wowluanot in Blizzard's documentation | implemented |
modf | Returns the integer part and the fractional part of a number, both with the number's sign. · by wowluanot in Blizzard's documentation | implemented |
normalize | Returns the relative position of a value within a range, where the minimum maps to 0 and the maximum maps to 1.(value: number, minimum: number, maximum: number): number | implemented |
pow | Returns x raised to the power y; the same as x ^ y. · by wowluanot in Blizzard's documentation | implemented |
rad | Converts an angle from degrees to radians. · by wowluanot in Blizzard's documentation | implemented |
random | Returns a random number within the specified interval.not in Blizzard's documentation | implemented |
remap | Maps a value from one range to the corresponding position in another range.(value: number, sourceMinimum: number, sourceMaximum: number, destinationMinimum: number, destinationMaximum: number): number | implemented |
round | Rounds a value to the specified number of decimal places, with halfway values rounded away from zero.(value: number, decimalPlaces: number): number | implemented |
saturate | Clamps a value to the inclusive range [0, 1].(value: number): number | implemented |
sign | Returns -1 for negative values, 0 for zero, and 1 for positive values.(value: number): number | implemented |
sin | Computes trigonometric functions.not in Blizzard's documentation | implemented |
sinh | Returns the hyperbolic sine of a number. · by wowluanot in Blizzard's documentation | implemented |
sqrt | Returns the square root of a number. · by wowluanot in Blizzard's documentation | implemented |
tan | Returns the tangent of an angle given in radians. · by wowluanot in Blizzard's documentation | implemented |
tanh | Returns the hyperbolic tangent of a number. · by wowluanot in Blizzard's documentation | implemented |
wrap | Wraps a value into the half-open range [minimum, maximum).(value: number, minimum: number, maximum: number): number | implemented |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaMathExtensions system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.