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(...) |
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.
Clip a floating point number against the lower limit 0 and the upper limit 1. The result will be returned.
Clip a floating point number against the lower limit 0 and the upper limit 1. The result will be returned.
Calculates the reciprocal value (multiplicative inverse). If the input value is zero, zero will be returned for safety to avoid exceptions.
Calculates the reciprocal value (multiplicative inverse). If the input value is zero, zero will be returned for safety to avoid exceptions.
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.
Clips a value against a lower and upper limit. The new value is returned.
X Sqr | ( | X | a, |
X | b | ||
) |
Calculates square difference of two values.
X Sqr | ( | X | a | ) |
Calculates square of a value.
Calculates arcsine. The input value is clipped for safety to avoid exceptions.
Calculates arcsine. The input value is clipped for safety to avoid exceptions.
Calculates arccosine. The input value is clipped for safety to avoid exceptions.
Calculates arccosine. The input value is clipped for safety to avoid exceptions.
Safely converts a 32 bit float value into Int32. The resulting value will be clipped against the Int32 boundaries, without raising an exception.
Safely converts a 64 bit float value into Int32. The resulting value will be clipped against the Int32 boundaries, without raising an exception.
Safely converts a 32 bit float value into Int64. The resulting value will be clipped against the Int64 boundaries, without raising an exception.
Safely converts a 64 bit float value into Int64. The resulting value will be clipped against the Int64 boundaries, without raising an exception
Safely converts a 64 bit float value into Int. The resulting value will be clipped against the Int boundaries, without raising an exception
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)