đĸmath
Last updated
Last updated
math.abs(x: number):
number
Name | Type | Description |
---|---|---|
Returns the absolute value of x.
math.acos(x: number):
number
Name | Type | Description |
---|---|---|
Returns the arc cosine of x (in radians).
math.asin(x: number):
number
Name | Type | Description |
---|---|---|
Returns the arc sine of x (in radians).
math.atan(x: number):
number
Returns the arc tangent of x (in radians).
math.atan2(x: number, y: number):
number
Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of x being zero.)
math.ceil(x: number):
number
Returns the smallest integer larger than or equal to x.
math.clamp(value: number[, min: number, max: number]):
number
Returns the clamped value.
math.cos(x: number):
number
Returns the cosine of x (assumed to be in radians).
math.cosh(x: number):
number
Returns the hyperbolic cosine of x.
math.deg(x: number):
number
Returns the angle x (given in radians) in degrees.
math.exp(x: number):
number
Returns the value e power x.
math.floor(x: number):
number
Returns the largest integer smaller than or equal to x.
math.fmod(x: number, y: number):
number
Returns the remainder of the division of x by y that rounds the quotient towards zero.
math.frexp(x: number):
number
, number
Returns m
and e
such that x = m2e
, e
is an integer and the absolute value of m
is in the range [0.5, 1)
(or zero when x
is zero).
math.huge
:
number
The value HUGE_VAL, a value larger than or equal to any other numerical value.
math.ldexp(x: number, e: number):
number
Returns m2e
(e should be an integer).
math.log(x: number):
number
Returns the natural logarithm of x.
math.log10(x: number):
number
Returns the base-10 logarithm of x.
math.map(value: number, in_from: number, in_to: number, out_from: number, out_to: number[, should_clamp: boolean]):
number
Linearly maps two number ranges and returns the mapped value.
math.max(x: number[, ...]):
number
Returns the maximum value among its arguments.
math.min(x: number[, ...]):
number
Returns the minimum value among its arguments.
math.modf(x: number):
number
Returns two numbers, the integral part of x and the fractional part of x.
math.normalize_yaw(x: number):
number
Returns the normalized yaw angle value.
math.pi
:
number
The value of pi.
math.pow(x: number, y: number):
number
Returns x^y. (You can also use the expression x^y to compute this value.)
math.rad(x: number):
number
Returns the angle x (given in degrees) in radians.
math.random([m [, n]]):
number
This function is an interface to the simple pseudo-random generator function rand provided by ANSI C.When called without arguments, returns a uniform pseudo-random real number in the range [0,1). When called with an integer number m, math.random returns a uniform pseudo-random integer in the range [1, m]. When called with two integer numbers m and n, math.random returns a uniform pseudo-random integer in the range [m, n].
math.randomseed(x: number):
number
Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.
math.sin(x: number):
number
Returns the sine of x (assumed to be in radians).
math.sinh(x: number):
number
Returns the hyperbolic sine of x.
math.sqrt(x: number):
number
Returns the square root of x. (You can also use the expression x^0.5 to compute this value.)
math.tan(x: number):
number
Returns the tangent of x (assumed to be in radians).
math.tanh(x: number):
number
Returns the hyperbolic tangent of x.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
x
number
Number
x
number
Number
x
number
Number
x
number
Number
x
number
Number
y
number
Number
x
number
Number
value
number
The value to clamp
min
number
The minimum value
max
number
The maximum value
x
number
Number
x
number
Number
x
number
Number
x
number
Number
x
number
Number
x
number
Number
y
number
Number
x
number
Number
x
number
Number
e
number
Number
x
number
Number
x
number
Number
value
number
The value to map
in_from
number
In minimum value
in_to
number
In maximum value
out_from
number
Out minimum value
out_to
number
Out maximum value
should_clamp
boolean
Clamp In
range
x
number
Number
...
Comma-separated numbers to concatenate with x
x
number
Number
...
Comma-separated numbers to concatenate with x
x
number
Number
x
number
Number
x
number
Number
y
number
Number
x
number
Number
m
number
Number
n
number
Number
x
number
Number
x
number
Number
x
number
Number
x
number
Number
x
number
Number
x
number
Number