Functions | |
NUMBER | math.map (NUMBER in_value, NUMBER in_min, NUMBER in_max, NUMBER out_min, NUMBER out_max) |
Re-assign a number from one range to another. More... | |
NUMBER | math.minmax (NUMBER x, NUMBER min, NUMBER max) |
Keeps a number between two limits. More... | |
NUMBER | math.bitnot (NUMBER Bit) |
Performs a bit logical negation (the 1 is converted to 0, and vice versa). More... | |
NUMBER | math.bitand (NUMBER one, NUMBER two) |
Performs a logic AND operation on each bit pair. More... | |
NUMBER | math.bitor (NUMBER one, NUMBER two) |
Performs a logic OR operation on each bit pair. More... | |
Math functions
NUMBER math.map | ( | NUMBER | in_value, |
NUMBER | in_min, | ||
NUMBER | in_max, | ||
NUMBER | out_min, | ||
NUMBER | out_max | ||
) |
Re-assign a number from one range to another.
in_value | The incoming value. |
in_min | The minimum incoming value. |
in_max | The maximum incoming value. |
out_min | The minimum value outgoing. |
out_max | The maximum outgoing value. |
NUMBER math.minmax | ( | NUMBER | x, |
NUMBER | min, | ||
NUMBER | max | ||
) |
Keeps a number between two limits.
x | The number to evaluate. |
min | Lower limit. |
max | Upper limit. |
NUMBER math.bitnot | ( | NUMBER | Bit | ) |
Performs a bit logical negation (the 1 is converted to 0, and vice versa).
Bit | The number to process. |
NUMBER math.bitand | ( | NUMBER | one, |
NUMBER | two | ||
) |
Performs a logic AND operation on each bit pair.
one | First number to process. |
two | Second number to process. |
NUMBER math.bitor | ( | NUMBER | one, |
NUMBER | two | ||
) |
Performs a logic OR operation on each bit pair.
one | First number to process. |
two | Second number to process. |