Classes | |
class | LIMIT< T > |
class | LIMIT< Int64 > |
class | LIMIT< UInt64 > |
class | LIMIT< Int32 > |
class | LIMIT< UInt32 > |
class | LIMIT< Int16 > |
class | LIMIT< UInt16 > |
class | LIMIT< Char > |
class | LIMIT< UChar > |
class | LIMIT< Float32 > |
class | LIMIT< Float64 > |
Macros | |
#define | SIZEOF(...) |
Functions | |
Float32 | Clamp01 (Float32 a) |
Float64 | Clamp01 (Float64 a) |
Float32 | Sin (Float32 val) |
Float64 | Sin (Float64 val) |
Float32 | Cos (Float32 val) |
Float64 | Cos (Float64 val) |
Float32 | Tan (Float32 val) |
Float64 | Tan (Float64 val) |
Float32 | ATan (Float32 val) |
Float64 | ATan (Float64 val) |
Float32 | ATan2 (Float32 valY, Float32 valX) |
Float64 | ATan2 (Float64 valY, Float64 valX) |
Float32 | Exp (Float32 val) |
Float64 | Exp (Float64 val) |
Float32 | Ln (Float32 val) |
Float64 | Ln (Float64 val) |
Float32 | Log10 (Float32 val) |
Float64 | Log10 (Float64 val) |
Float32 | Log2 (Float32 val) |
Float64 | Log2 (Float64 val) |
Float32 | Sqrt (Float32 val) |
Float64 | Sqrt (Float64 val) |
Float32 | Floor (Float32 val) |
Float64 | Floor (Float64 val) |
Float32 | Ceil (Float32 val) |
Float64 | Ceil (Float64 val) |
Float32 | Modf (Float32 val, Float32 *intpart) |
Float64 | Modf (Float64 val, Float64 *intpart) |
Float32 | Pow (Float32 v1, Float32 v2) |
Float64 | Pow (Float64 v1, Float64 v2) |
Float32 | Sinh (Float32 val) |
Float64 | Sinh (Float64 val) |
Float32 | Cosh (Float32 val) |
Float64 | Cosh (Float64 val) |
Float32 | Tanh (Float32 val) |
Float64 | Tanh (Float64 val) |
Float32 | FMod (Float32 v1, Float32 v2) |
Float64 | FMod (Float64 v1, Float64 v2) |
Float32 | Abs (Float32 val) |
Float64 | Abs (Float64 val) |
Float32 | Inverse (Float32 f) |
Float64 | Inverse (Float64 f) |
Float32 | Round (Float32 f) |
Float64 | Round (Float64 f) |
template<typename X > | |
X | Abs (X f) |
template<typename X > | |
X | Min (X a, X b) |
template<typename X > | |
X | Max (X a, X b) |
template<typename X > | |
void | Swap (X &a, X &b) |
template<typename X > | |
X | ClampValue (X value, X lowerLimit, X upperLimit) |
Float32 | Blend (Float32 value1, Float32 value2, Float32 blendValue) |
Float64 | Blend (Float64 value1, Float64 value2, Float64 blendValue) |
template<typename X > | |
X | Sqr (X a, X b) |
template<typename X > | |
X | Sqr (X a) |
Float32 | ASin (Float32 val) |
Float64 | ASin (Float64 val) |
Float32 | ACos (Float32 val) |
Float64 | ACos (Float64 val) |
Float32 | DegToRad (Float32 r) |
Float64 | DegToRad (Float64 r) |
Float32 | RadToDeg (Float32 r) |
Float64 | RadToDeg (Float64 r) |
void | SinCos (Float32 r, Float32 &sn, Float32 &cs) |
void | SinCos (Float64 r, Float64 &sn, Float64 &cs) |
Int32 | SAFEINT32 (Float32 x) |
Int32 | SAFEINT32 (Float64 x) |
Int64 | SAFEINT64 (Float32 x) |
Int64 | SAFEINT64 (Float64 x) |
Int | SAFEINT (Float64 x) |
Int | SAFEINT (Float32 x) |
template<typename T > | |
void | SetMax (T &a, const T &b) |
template<typename T > | |
void | SetMin (T &a, const T &b) |
Variables | |
static constexpr Float32 | MINVALUE_FLOAT32 |
static constexpr Float32 | MAXVALUE_FLOAT32 |
static constexpr Float64 | MINVALUE_FLOAT64 |
static constexpr Float64 | MAXVALUE_FLOAT64 |
static constexpr Float32 | MINVALUE_INT32_FLOAT32 |
static constexpr Float32 | MAXVALUE_INT32_FLOAT32 |
static constexpr Float64 | MINVALUE_INT64_FLOAT64 |
static constexpr Float64 | MAXVALUE_INT64_FLOAT64 |
static constexpr Float32 | MINRANGE_FLOAT32 |
static constexpr Float32 | MAXRANGE_FLOAT32 |
static constexpr Float64 | MINRANGE_FLOAT64 |
static constexpr Float64 | MAXRANGE_FLOAT64 |
static constexpr Float | MINVALUE_FLOAT |
static constexpr Float | MAXVALUE_FLOAT |
static constexpr Float | MINRANGE_FLOAT |
static constexpr Float | MAXRANGE_FLOAT |
static constexpr Int | NOTOK |
static constexpr Float64 | PI |
static constexpr Float64 | PI_INV |
static constexpr Float64 | PI2 |
static constexpr Float64 | PI2_INV |
static constexpr Float64 | PI05 |
static constexpr Float64 | PI05_INV |
static constexpr Float64 | PI15 |
static constexpr Float64 | PI15_INV |
#define SIZEOF | ( | ... | ) |
Calculates the size of a datatype or element.
Float32 Clamp01 | ( | Float32 | a | ) |
Clip a floating point number against the lower limit 0 and the upper limit 1. The result will be returned.
Float64 Clamp01 | ( | Float64 | a | ) |
Clip a floating point number against the lower limit 0 and the upper limit 1. The result will be returned.
Float32 Sin | ( | Float32 | val | ) |
Float64 Sin | ( | Float64 | val | ) |
Float32 Cos | ( | Float32 | val | ) |
Float64 Cos | ( | Float64 | val | ) |
Float32 Tan | ( | Float32 | val | ) |
Float64 Tan | ( | Float64 | val | ) |
Float32 ATan | ( | Float32 | val | ) |
Float64 ATan | ( | Float64 | val | ) |
Float32 ATan2 | ( | Float32 | valY, |
Float32 | valX | ||
) |
Float64 ATan2 | ( | Float64 | valY, |
Float64 | valX | ||
) |
Float32 Exp | ( | Float32 | val | ) |
Float64 Exp | ( | Float64 | val | ) |
Float32 Ln | ( | Float32 | val | ) |
Float64 Ln | ( | Float64 | val | ) |
Float32 Log10 | ( | Float32 | val | ) |
Float64 Log10 | ( | Float64 | val | ) |
Float32 Log2 | ( | Float32 | val | ) |
Float64 Log2 | ( | Float64 | val | ) |
Float32 Sqrt | ( | Float32 | val | ) |
Float64 Sqrt | ( | Float64 | val | ) |
Float32 Floor | ( | Float32 | val | ) |
Float64 Floor | ( | Float64 | val | ) |
Float32 Ceil | ( | Float32 | val | ) |
Float64 Ceil | ( | Float64 | val | ) |
Float32 Modf | ( | Float32 | val, |
Float32 * | intpart | ||
) |
Float64 Modf | ( | Float64 | val, |
Float64 * | intpart | ||
) |
Float32 Pow | ( | Float32 | v1, |
Float32 | v2 | ||
) |
Float64 Pow | ( | Float64 | v1, |
Float64 | v2 | ||
) |
Float32 Sinh | ( | Float32 | val | ) |
Float64 Sinh | ( | Float64 | val | ) |
Float32 Cosh | ( | Float32 | val | ) |
Float64 Cosh | ( | Float64 | val | ) |
Float32 Tanh | ( | Float32 | val | ) |
Float64 Tanh | ( | Float64 | val | ) |
Float32 FMod | ( | Float32 | v1, |
Float32 | v2 | ||
) |
Float64 FMod | ( | Float64 | v1, |
Float64 | v2 | ||
) |
Float32 Abs | ( | Float32 | val | ) |
Float64 Abs | ( | Float64 | val | ) |
Float32 Inverse | ( | Float32 | f | ) |
Calculates the reciprocal value (multiplicative inverse). If the input value is zero, zero will be returned for safety to avoid exceptions.
Float64 Inverse | ( | Float64 | f | ) |
Calculates the reciprocal value (multiplicative inverse). If the input value is zero, zero will be returned for safety to avoid exceptions.
Float32 Round | ( | Float32 | f | ) |
Rounds a floating point value
Float64 Round | ( | Float64 | f | ) |
Rounds a floating point value
X Abs | ( | X | f | ) |
Calculates the absolute value of any data type.
X Min | ( | X | a, |
X | b | ||
) |
Calculates the minimum of two values and return it.
X Max | ( | X | a, |
X | b | ||
) |
Calculates the maximum of two values and return it.
void Swap | ( | X & | a, |
X & | b | ||
) |
Swaps two values. If available, move semantics will be used.
X ClampValue | ( | X | value, |
X | lowerLimit, | ||
X | upperLimit | ||
) |
Clips a value against a lower and upper limit. The new value is returned.
Float32 Blend | ( | Float32 | value1, |
Float32 | value2, | ||
Float32 | blendValue | ||
) |
Clips a value against a lower and upper limit. The new value is returned.
Float64 Blend | ( | Float64 | value1, |
Float64 | value2, | ||
Float64 | blendValue | ||
) |
X Sqr | ( | X | a, |
X | b | ||
) |
Calculates square difference of two values.
X Sqr | ( | X | a | ) |
Calculates square of a value.
Float32 ASin | ( | Float32 | val | ) |
Calculates arcsine. The input value is clipped for safety to avoid exceptions.
Float64 ASin | ( | Float64 | val | ) |
Calculates arcsine. The input value is clipped for safety to avoid exceptions.
Float32 ACos | ( | Float32 | val | ) |
Calculates arccosine. The input value is clipped for safety to avoid exceptions.
Float64 ACos | ( | Float64 | val | ) |
Calculates arccosine. The input value is clipped for safety to avoid exceptions.
Float32 DegToRad | ( | Float32 | r | ) |
Converts float value from degrees to radians.
Float64 DegToRad | ( | Float64 | r | ) |
Converts float value from degrees to radians.
Float32 RadToDeg | ( | Float32 | r | ) |
Converts float value from radians to degrees.
Float64 RadToDeg | ( | Float64 | r | ) |
Converts float value from radians to degrees.
void SinCos | ( | Float32 | r, |
Float32 & | sn, | ||
Float32 & | cs | ||
) |
void SinCos | ( | Float64 | r, |
Float64 & | sn, | ||
Float64 & | cs | ||
) |
Int32 SAFEINT32 | ( | Float32 | x | ) |
Safely converts a 32 bit float value into Int32. The resulting value will be clipped against the Int32 boundaries, without raising an exception.
Int32 SAFEINT32 | ( | Float64 | x | ) |
Safely converts a 64 bit float value into Int32. The resulting value will be clipped against the Int32 boundaries, without raising an exception.
Int64 SAFEINT64 | ( | Float32 | x | ) |
Safely converts a 32 bit float value into Int64. The resulting value will be clipped against the Int64 boundaries, without raising an exception.
Int64 SAFEINT64 | ( | Float64 | x | ) |
Safely converts a 64 bit float value into Int64. The resulting value will be clipped against the Int64 boundaries, without raising an exception
Int SAFEINT | ( | Float64 | x | ) |
Safely converts a 64 bit float value into Int. The resulting value will be clipped against the Int boundaries, without raising an exception
Int SAFEINT | ( | Float32 | x | ) |
Safely converts a 32 bit float value into Int. The resulting value will be clipped against the Int boundaries, without raising an exception
void SetMax | ( | T & | a, |
const T & | b | ||
) |
Assigns the maximum of two values to the first value.
[in,out] | a | First value. |
[in] | b | Second value. |
void SetMin | ( | T & | a, |
const T & | b | ||
) |
Assigns the minimum of two values to the first value.
[in,out] | a | First value. |
[in] | b | Second value. |
|
staticconstexpr |
the minimum value a Float32 can represent
|
staticconstexpr |
the maximum value a Float32 can represent
|
staticconstexpr |
the minimum value a Float64 can represent
|
staticconstexpr |
the maximum value a Float64 can represent
|
staticconstexpr |
minimum Float32 value that can be represented by Int32 (-0x7FFFFF80). Lower values will results in an overflow
|
staticconstexpr |
maximum Float32 value that can be represented by Int32 ( 0x7FFFFF80). Higher values will results in an overflow
|
staticconstexpr |
minimum Float64 value that can be represented by Int64 (-0x7ffffffffffffdff). Lower values will results in an overflow
|
staticconstexpr |
maximum Float64 value that can be represented by Int64 ( 0x7ffffffffffffdff). Higher values will results in an overflow
|
staticconstexpr |
'safe' minimum range for Float32. Guarantees that multiplication of two numbers doesn't produce an overflow
|
staticconstexpr |
'safe' maximum range for Float32. Guarantees that multiplication of two numbers doesn't produce an overflow
|
staticconstexpr |
'safe' minimum range for Float. Guarantees that multiplication of two numbers doesn't produce an overflow
|
staticconstexpr |
'safe' maximum range for Float. Guarantees that multiplication of two numbers doesn't produce an overflow
|
staticconstexpr |
the minimum value a Float can represent
|
staticconstexpr |
the maximum value a Float can represent
|
staticconstexpr |
'safe' minimum range for Float64. Guarantees that multiplication of two numbers doesn't produce an overflow
|
staticconstexpr |
'safe' maximum range for Float64. Guarantees that multiplication of two numbers doesn't produce an overflow
|
staticconstexpr |
constant used for special cases
|
staticconstexpr |
floating point constant: PI
|
staticconstexpr |
floating point constant: 1.0 / PI
|
staticconstexpr |
floating point constant: 2.0 * PI
|
staticconstexpr |
floating point constant: 1.0 / (2.0 * PI)
|
staticconstexpr |
floating point constant: 0.5 * PI
|
staticconstexpr |
floating point constant: 1.0 / (0.5 * PI)
|
staticconstexpr |
floating point constant: 1.5 * PI
|
staticconstexpr |
floating point constant: 1.0 / (1.5 * PI)