|
GigaPasjans
|
A utility which contains essential mathematical functions and constants. More...
#include <Math.h>
Static Public Member Functions | |
| template<Arithmetic T> | |
| static constexpr T | Radians (T value) |
| Mathematical function that converts degrees to radians. | |
| template<Arithmetic T> | |
| static constexpr T | HalfRadians (T value) |
| Mathematical function that converts degrees to half-radians. | |
| template<Arithmetic T> | |
| static constexpr int32 | Ceil (T value) |
| Mathematical function that returns the smallest integer greater than or equal to the input. | |
| template<Arithmetic T> | |
| static constexpr T | Tan (T value) |
| Mathematical function that computes the tangent of an angle (in radians). | |
| template<Arithmetic T> | |
| static constexpr T | Sin (T value) |
| Mathematical function that computes the sine of an angle (in radians). | |
| template<Arithmetic T> | |
| static constexpr T | Cos (T value) |
| Mathematical function that computes the cosine of an angle (in radians). | |
| template<Arithmetic T> | |
| static constexpr T | Abs (T value) |
| Mathematical function that returns the absolute value of the input. | |
| template<Arithmetic T> | |
| static constexpr T | Inverse (T value) |
| Mathematical function that returns the value with its sign inverted. | |
| template<Arithmetic T> | |
| static constexpr T | Sqrt (T value) |
| Mathematical function that computes the square root of the input. | |
| template<Arithmetic T> | |
| static constexpr T | Lerp (T from, T to, T amount) |
| Mathematical function that linearly interpolates between two values based on a weight. | |
| template<Arithmetic T> | |
| static constexpr T | Atan (T x) |
| Mathematical function that computes the arctangent of a value using a Taylor series. | |
| template<Arithmetic T> | |
| static constexpr T | Factorical (int32 n) |
| Mathematical function that computes the factorial of an integer. | |
| template<Arithmetic T> | |
| static constexpr T | Asin (T x) |
| Mathematical function that computes the arcsine of a value using a power series. | |
| template<Arithmetic T> | |
| static constexpr T | Copysign (T magnitude, T sign) |
| Mathematical function that returns a value with the magnitude of the first argument and the sign of the second. | |
| template<Arithmetic T> | |
| static constexpr T | Atan2 (T x, T y) |
| Mathematical function that computes the arctangent of y/x using signs to determine the correct quadrant. | |
| template<Arithmetic T> | |
| static constexpr T | Clamp (T value, T min, T max) |
| Mathematical function that clamps a value between a minimum and maximum. | |
A utility which contains essential mathematical functions and constants.