|
static auto | clamp (auto value, auto min, auto max) |
| Clamps a value to min or max value. More...
|
|
static auto | sign (auto value) |
| Returns sign of value. More...
|
|
static auto | square (auto value) |
| Do the square product. More...
|
|
static auto | abs (auto value) |
| Returns absolute value. More...
|
|
static float | acos (float x) |
| Returns the arc cosine of x. More...
|
|
static float | asin (float x) |
| Returns the arc sine of x. More...
|
|
static float | atan (float x) |
| Returns the arc tangent of x. More...
|
|
static float | atan2 (float y, float x) |
| Returns the angle from the conversion of rectangular coordinates to polar coordinates. More...
|
|
static float | ceil (float value) |
| Returns the higher integer value of given value. More...
|
|
static float | cos (float x) |
| Returns the cosine of x. More...
|
|
static float | floor (float value) |
| Returns the lower integer value of given value. More...
|
|
static auto | max (auto value1, auto value2) |
| Returns the higher value of given values. More...
|
|
static auto | min (auto value1, auto value2) |
| Returns the lesser value of given values. More...
|
|
static float | round (float value) |
| Returns the rounded value of given float value. More...
|
|
static auto | pow (auto base, auto power) |
| Returns the value of base raised to the power. More...
|
|
static float | random () |
| Returns a random value between 0.0 . More...
|
|
static float | sin (float x) |
| Returns the sine of x. More...
|
|
static float | sqrt (float value) |
| Returns the square root of given value. More...
|
|
static float | tan (float x) |
| Returns the tangent of x. More...
|
|
static float | exp (float power) |
| Returns e raised to the given power. More...
|
|
static float | log (float value) |
| Returns the natural (base e) logarithm of value. More...
|
|
static auto | mod (auto value, auto range) |
| Returns modulo of value, so that return value is -range < value < range. More...
|
|
static float | mod (float value, float range) |
| Returns modulo of value, so that return value is -range < value < range. More...
|
|
static auto | absmod (auto value, auto range) |
| Returns absolute modulo of value, so that return value is 0 <= value < range. More...
|
|
static float | absmod (float value, float range) |
| Returns absolute modulo of value, so that return value is 0.0f <= value < range. More...
|
|
Standard math functions.
- Author
- Andreas Drewke
Definition at line 18 of file Math.h.