Ocean
|
This class provides basic numeric functionalities. More...
Public Member Functions | |
constexpr double | eps () |
Specialization of NumericT::eps(). More... | |
constexpr float | eps () |
Specialization of NumericT::eps(). More... | |
constexpr signed char | eps () |
Specialization of NumericT::eps(). More... | |
constexpr unsigned char | eps () |
Specialization of NumericT::eps(). More... | |
constexpr short | eps () |
Specialization of NumericT::eps(). More... | |
constexpr unsigned short | eps () |
Specialization of NumericT::eps(). More... | |
constexpr int | eps () |
Specialization of NumericT::eps(). More... | |
constexpr unsigned int | eps () |
Specialization of NumericT::eps(). More... | |
constexpr long | eps () |
Specialization of NumericT::eps(). More... | |
constexpr unsigned long | eps () |
Specialization of NumericT::eps(). More... | |
constexpr long long | eps () |
Specialization of NumericT::eps(). More... | |
constexpr unsigned long long | eps () |
Specialization of NumericT::eps(). More... | |
constexpr double | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr float | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr signed char | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr unsigned char | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr short | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr unsigned short | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr int | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr unsigned int | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr long | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr unsigned long | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr long long | weakEps () |
Specialization of NumericT::weakEps(). More... | |
constexpr unsigned long long | weakEps () |
Specialization of NumericT::weakEps(). More... | |
signed char | abs (const signed char value) |
Specialization of NumericT::abs(). More... | |
unsigned char | abs (const unsigned char value) |
Specialization of NumericT::abs(). More... | |
short | abs (const short value) |
Specialization of NumericT::abs(). More... | |
unsigned short | abs (const unsigned short value) |
Specialization of NumericT::abs(). More... | |
int | abs (const int value) |
Specialization of NumericT::abs(). More... | |
unsigned int | abs (const unsigned int value) |
Specialization of NumericT::abs(). More... | |
long | abs (const long value) |
Specialization of NumericT::abs(). More... | |
unsigned long | abs (const unsigned long value) |
Specialization of NumericT::abs(). More... | |
long long | abs (const long long value) |
Specialization of NumericT::abs(). More... | |
unsigned long long | abs (const unsigned long long value) |
Specialization of NumericT::abs(). More... | |
double | abs (const double value) |
Specialization of NumericT::abs(). More... | |
float | abs (const float value) |
Specialization of NumericT::abs(). More... | |
unsigned char | secureAbs (const signed char value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned char | secureAbs (const unsigned char value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned short | secureAbs (const short value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned short | secureAbs (const unsigned short value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned int | secureAbs (const int value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned int | secureAbs (const unsigned int value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned long | secureAbs (const long value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned long | secureAbs (const unsigned long value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned long long | secureAbs (const long long value) |
Specialization of NumericT::secureAbs(). More... | |
unsigned long long | secureAbs (const unsigned long long value) |
Specialization of NumericT::secureAbs(). More... | |
double | secureAbs (const double value) |
Specialization of NumericT::secureAbs(). More... | |
float | secureAbs (const float value) |
Specialization of NumericT::secureAbs(). More... | |
float | sqrt (const float value) |
Specialization of NumericT::sqrt(). More... | |
int | sqrt (const int value) |
Specialization of NumericT::sqrt(). More... | |
float | sin (const float value) |
Specialization of NumericT::sin(). More... | |
float | cos (const float value) |
Specialization of NumericT::cos(). More... | |
float | tan (const float value) |
Specialization of NumericT::tan(). More... | |
float | atan (const float value) |
Specialization of NumericT::atan(). More... | |
float | exp (const float value) |
float | log (const float value) |
float | log1p (const float value) |
float | log2 (const float value) |
Specialization of NumericT::log2(). More... | |
float | log10 (const float value) |
float | atan2 (const float y, const float x) |
Specialization of NumericT::atan2(). More... | |
float | fmod (const float valueA, const float valueB) |
Specialization of NumericT::fmod(). More... | |
float | pow (const float x, const float y) |
Specialization of NumericT::pow(). More... | |
constexpr unsigned int | factorial (const unsigned int &value) |
float | ceil (const float value) |
Specialization of NumericT::ceil(). More... | |
double | ceil (const double value) |
Specialization of NumericT::ceil(). More... | |
long double | ceil (const long double value) |
Specialization of NumericT::ceil(). More... | |
float | floor (const float value) |
Specialization of NumericT::floor(). More... | |
double | floor (const double value) |
Specialization of NumericT::floor(). More... | |
long double | floor (const long double value) |
Specialization of NumericT::floor(). More... | |
constexpr bool | isEqualEps (const signed char value) |
constexpr bool | isEqualEps (const unsigned char value) |
constexpr bool | isEqualEps (const short value) |
constexpr bool | isEqualEps (const unsigned short value) |
constexpr bool | isEqualEps (const int value) |
constexpr bool | isEqualEps (const unsigned int value) |
constexpr bool | isEqualEps (const long value) |
constexpr bool | isEqualEps (const unsigned long value) |
constexpr bool | isEqualEps (const long long value) |
constexpr bool | isEqualEps (const unsigned long long value) |
constexpr bool | isWeakEqualEps (const signed char value) |
constexpr bool | isWeakEqualEps (const unsigned char value) |
constexpr bool | isWeakEqualEps (const short value) |
constexpr bool | isWeakEqualEps (const unsigned short value) |
constexpr bool | isWeakEqualEps (const int value) |
constexpr bool | isWeakEqualEps (const unsigned int value) |
constexpr bool | isWeakEqualEps (const long value) |
constexpr bool | isWeakEqualEps (const unsigned long value) |
constexpr bool | isWeakEqualEps (const long long value) |
constexpr bool | isWeakEqualEps (const unsigned long long value) |
constexpr bool | isNotEqualEps (const signed char value) |
constexpr bool | isNotEqualEps (const unsigned char value) |
constexpr bool | isNotEqualEps (const short value) |
constexpr bool | isNotEqualEps (const unsigned short value) |
constexpr bool | isNotEqualEps (const int value) |
constexpr bool | isNotEqualEps (const unsigned int value) |
constexpr bool | isNotEqualEps (const long value) |
constexpr bool | isNotEqualEps (const unsigned long value) |
constexpr bool | isNotEqualEps (const long long value) |
constexpr bool | isNotEqualEps (const unsigned long long value) |
constexpr bool | isNotWeakEqualEps (const signed char value) |
constexpr bool | isNotWeakEqualEps (const unsigned char value) |
constexpr bool | isNotWeakEqualEps (const short value) |
constexpr bool | isNotWeakEqualEps (const unsigned short value) |
constexpr bool | isNotWeakEqualEps (const int value) |
constexpr bool | isNotWeakEqualEps (const unsigned int value) |
constexpr bool | isNotWeakEqualEps (const long value) |
constexpr bool | isNotWeakEqualEps (const unsigned long value) |
constexpr bool | isNotWeakEqualEps (const long long value) |
constexpr bool | isNotWeakEqualEps (const unsigned long long value) |
bool | isEqual (const signed char first, const signed char second) |
bool | isEqual (const unsigned char first, const unsigned char second) |
bool | isEqual (const short first, const short second) |
bool | isEqual (const unsigned short first, const unsigned short second) |
bool | isEqual (const int first, const int second) |
bool | isEqual (const unsigned int first, const unsigned int second) |
bool | isEqual (const long first, const long second) |
bool | isEqual (const unsigned long first, const unsigned long second) |
bool | isEqual (const long long first, const long long second) |
bool | isEqual (const unsigned long long first, const unsigned long long second) |
bool | isEqual (const signed char first, const signed char second, const signed char epsilon) |
bool | isEqual (const short first, const short second, const short epsilon) |
bool | isEqual (const int first, const int second, const int epsilon) |
bool | isEqual (const long first, const long second, const long epsilon) |
bool | isEqual (const long long first, const long long second, const long long epsilon) |
bool | isEqual (const unsigned char first, const unsigned char second, const unsigned char epsilon) |
bool | isEqual (const unsigned short first, const unsigned short second, const unsigned short epsilon) |
bool | isEqual (const unsigned int first, const unsigned int second, const unsigned int epsilon) |
bool | isEqual (const unsigned long first, const unsigned long second, const unsigned long epsilon) |
bool | isEqual (const unsigned long long first, const unsigned long long second, const unsigned long long epsilon) |
bool | isWeakEqual (const int first, const int second) |
bool | isNotEqual (const signed char first, const signed char second) |
bool | isNotEqual (const unsigned char first, const unsigned char second) |
bool | isNotEqual (const short first, const short second) |
bool | isNotEqual (const unsigned short first, const unsigned short second) |
bool | isNotEqual (const int first, const int second) |
bool | isNotEqual (const unsigned int first, const unsigned int second) |
bool | isNotEqual (const long first, const long second) |
bool | isNotEqual (const unsigned long first, const unsigned long second) |
bool | isNotEqual (const long long first, const long long second) |
bool | isNotEqual (const unsigned long long first, const unsigned long long second) |
bool | isNotWeakEqual (const signed char first, const signed char second) |
bool | isNotWeakEqual (const unsigned char first, const unsigned char second) |
bool | isNotWeakEqual (const short first, const short second) |
bool | isNotWeakEqual (const unsigned short first, const unsigned short second) |
bool | isNotWeakEqual (const int first, const int second) |
bool | isNotWeakEqual (const unsigned int first, const unsigned int second) |
bool | isNotWeakEqual (const long first, const long second) |
bool | isNotWeakEqual (const unsigned long first, const unsigned long second) |
bool | isNotWeakEqual (const long long first, const long long second) |
bool | isNotWeakEqual (const unsigned long long first, const unsigned long long second) |
bool | isNotEqual (const signed char first, const signed char second, const signed char epsilon) |
bool | isNotEqual (const short first, const short second, const short epsilon) |
bool | isNotEqual (const int first, const int second, const int epsilon) |
bool | isNotEqual (const long first, const long second, const long epsilon) |
bool | isNotEqual (const long long first, const long long second, const long long epsilon) |
bool | isNotEqual (const unsigned char first, const unsigned char second, const unsigned char epsilon) |
bool | isNotEqual (const unsigned short first, const unsigned short second, const unsigned short epsilon) |
bool | isNotEqual (const unsigned int first, const unsigned int second, const unsigned int epsilon) |
bool | isNotEqual (const unsigned long first, const unsigned long second, const unsigned long epsilon) |
bool | isNotEqual (const unsigned long long first, const unsigned long long second, const unsigned long long epsilon) |
float | asin (const float value) |
Specialization of NumericT::asin(). More... | |
float | acos (const float value) |
Specialization of NumericT::acos(). More... | |
bool | isNan (const float value) |
bool | isNan (const double value) |
bool | isInf (const float value) |
bool | isInf (const double value) |
bool | isInf (const long double value) |
constexpr double | copySign (const double first, const double second) |
Specialization of NumericT::copySign(). More... | |
constexpr float | copySign (const float first, const float second) |
Specialization of NumericT::copySign(). More... | |
constexpr double | invertSign (const double first, const double second) |
Specialization of NumericT::invertSign(). More... | |
constexpr float | invertSign (const float first, const float second) |
Specialization of NumericT::invertSign(). More... | |
Static Public Member Functions | |
static constexpr T | pi () |
Returns PI which is equivalent to 180 degree. More... | |
static constexpr T | pi2 () |
Returns 2*PI which is equivalent to 360 degree. More... | |
static constexpr T | pi_2 () |
Returns PI/2 which is equivalent to 90 degree. More... | |
static constexpr T | pi_3 () |
Returns PI/3 which is equivalent to 60 degree. More... | |
static constexpr T | pi_4 () |
Returns PI/4 which is equivalent to 45 degree. More... | |
static constexpr T | squarePi () |
Returns the square of PI i.e., PI^2. More... | |
static constexpr T | squarePi2 () |
Returns the square of two PI i.e., (2*PI)^2. More... | |
static constexpr T | squarePi_2 () |
Returns the square of PI half i.e., (PI/2)^2. More... | |
static constexpr T | e () |
Returns the euler's number. More... | |
static constexpr T | eps () |
Returns a small epsilon. More... | |
static constexpr T | weakEps () |
Returns a weak epsilon. More... | |
static T | abs (const T value) |
Returns the absolute value of a given value. More... | |
static UnsignedTyper< T >::Type | secureAbs (const T value) |
Returns the absolute value of a given value while the return value is guaranteed to be the absolute value of the input value. More... | |
static constexpr T | sqr (const T value) |
Returns the square of a given value. More... | |
static T | sum (const T *values, const size_t number) |
Returns the sum of given values. More... | |
static T | summedSqr (const T *values, const size_t number) |
Returns the summed squares of a given values. More... | |
static constexpr T | sqrDistance (const T value0, const T value1) |
Returns the square distance between two values. More... | |
static T | sqrt (const T value) |
Returns the square root of a given value. More... | |
static std::complex< T > | sqrt (const std::complex< T > &value) |
Returns the square root of a given value. More... | |
static T | sin (const T value) |
Returns the sine of a given value. More... | |
static T | cos (const T value) |
Returns the cosine of a given value. More... | |
static T | tan (const T value) |
Returns the tangent of a given value. More... | |
static T | asin (const T value) |
Returns the arcsine of a given value. More... | |
static T | acos (const T value) |
Returns the arccosine of a given value. More... | |
static T | atan (const T value) |
Returns the arctangent of a given value. More... | |
static T | atan2 (const T y, const T x) |
Returns the arctangent of a given value in radian. More... | |
static T | exp (const T value) |
Returns the base-e exponential function of a given value. More... | |
static T | log (const T value) |
Returns the natural logarithm of a given value (the logarithm to the base e). More... | |
static T | log1p (const T value) |
Returns the natural logarithm of a given value plus 1 (the logarithm to the base e). More... | |
static T | log2 (const T value) |
Returns the logarithm to base 2 of a given value. More... | |
static T | log10 (const T value) |
Returns the logarithm to base 10 of a given value. More... | |
static T | fmod (const T valueA, const T valueB) |
Returns the floating-point remainder of a given value. More... | |
static T | dot (const T *vectorA, const T *vectorB, const size_t size) |
Returns the dot product for two vectors. More... | |
static T | angleAdjustPositive (const T angle) |
Adjusts an arbitrary angle into the range of [0.0, 2PI). More... | |
static T | angleAdjustPositiveHalf (const T angle) |
Adjusts an arbitrary angle into the range of [0.0, PI). More... | |
static T | angleAdjustNull (const T angle) |
Adjusts an arbitrary angle into the range of (-PI, PI]. More... | |
static bool | angleIsEqual (const T angleA, const T angleB) |
Returns whether two angles represent the same angle up to a small epsilon. More... | |
static bool | angleIsWeakEqual (const T angleA, const T angleB) |
Returns whether two angles represent the same angle up to a weak epsilon. More... | |
static bool | angleIsEqual (const T angleA, const T angleB, const T epsilon) |
Returns whether two angles represent the same angle up to a given epsilon. More... | |
static bool | angleIsBelowThreshold (const T angleA, const T angleB, const T threshold) |
Returns whether the angular difference (distance) between two angles is smaller than a specified threshold. More... | |
static T | angleDistance (const T angleA, const T angleB) |
Returns the angular difference (distance between two angles). More... | |
static T | pow (const T x, const T y) |
Returns x raised to the power of y. More... | |
static std::complex< T > | pow (const std::complex< T > &x, const T y) |
Returns x raised to the power of y. More... | |
static constexpr T | integerPow (const T x, const unsigned int y) |
Returns x raised to the power of y while y is an integer. More... | |
static constexpr T | factorial (const T &value) |
Returns the factorial for a given value. More... | |
static constexpr T | binomialCoefficient (const T &n, const T &k) |
Returns the binomial coefficient for two binomial parameters. More... | |
static T | ceil (const T value) |
Returns the smallest integer value that is not less than the given value. More... | |
static T | floor (const T value) |
Returns the largest integer value that is not greater than the given value. More... | |
static constexpr int32_t | round32 (const T value) |
Returns the rounded 32 bit integer value of a given value. More... | |
static constexpr int64_t | round64 (const T value) |
Returns the rounded 64 bit integer value of a given value. More... | |
static constexpr T | ratio (const T nominator, const T denominator, const T fallback=T(1)) |
Returns the ratio between two values if the denominator is not equal a small epsilon. More... | |
static constexpr bool | isEqualEps (const T value) |
Returns whether a value is smaller than or equal to a small epsilon. More... | |
static constexpr bool | isEqualEps (const std::complex< T > &value) |
Returns whether a complex value is smaller than or equal to a small epsilon. More... | |
static constexpr bool | isWeakEqualEps (const T value) |
Returns whether a value is smaller than or equal to a weak epsilon. More... | |
static constexpr bool | isWeakEqualEps (const std::complex< T > &value) |
Returns whether a complex value is smaller than or equal to a weak epsilon. More... | |
static constexpr bool | isNotEqualEps (const T value) |
Returns whether a value is not smaller than or equal to a small epsilon. More... | |
static constexpr bool | isNotEqualEps (const std::complex< T > &value) |
Returns whether a complex value is not smaller than or equal to a small epsilon. More... | |
static constexpr bool | isNotWeakEqualEps (const T value) |
Returns whether a value is not smaller than or equal to a weak epsilon. More... | |
static constexpr bool | isNotWeakEqualEps (const std::complex< T > &value) |
Returns whether a complex value is not smaller than or equal to a weak epsilon. More... | |
static bool | isEqual (const T first, const T second) |
Returns whether two values are equal up to a small epsilon. More... | |
static bool | isEqual (const std::complex< T > &first, const std::complex< T > &second) |
Returns whether two complex values are equal up to a small epsilon. More... | |
static bool | isWeakEqual (const T first, const T second) |
Returns whether two values a equal up to a weak epsilon. More... | |
static bool | isWeakEqual (const std::complex< T > &first, const std::complex< T > &second) |
Returns whether two complex values are equal up to a weak epsilon. More... | |
static bool | isEqual (const T first, const T second, const T epsilon) |
Returns whether two values are equal up to a given epsilon. More... | |
static bool | isEqual (const std::complex< T > &first, const std::complex< T > &second, const T epsilon) |
Returns whether two complex values are equal up to a given epsilon. More... | |
template<int tMagnitude> | |
static bool | isEqual (const T first, const T second, const T referenceEpsilon) |
Returns whether two values are equal up to a dynamic epsilon which is adjusted due to the magnitude of both values and the reference magnitude. More... | |
static bool | isNotEqual (const T first, const T second) |
Returns whether two values are not equal up to a small epsilon. More... | |
static bool | isNotEqual (const std::complex< T > &first, const std::complex< T > &second) |
Returns whether two complex values are not equal up to a small epsilon. More... | |
static bool | isNotWeakEqual (const T first, const T second) |
Returns whether two values are not equal up to a weak epsilon. More... | |
static bool | isNotWeakEqual (const std::complex< T > &first, const std::complex< T > &second) |
Returns whether two complex values are not equal up to a weak epsilon. More... | |
static bool | isNotEqual (const T first, const T second, const T epsilon) |
Returns whether two values are not equal up to a given epsilon. More... | |
static bool | isNotEqual (const std::complex< T > &first, const std::complex< T > &second, const T epsilon) |
Returns whether two complex values are not equal up to a given epsilon. More... | |
static constexpr bool | isInsideRange (const T lower, const T value, const T upper, const T epsilon=NumericT< T >::eps()) |
Returns whether a value lies between a given range up to a provided epsilon border. More... | |
static constexpr bool | isInsideWeakRange (const T lower, const T value, const T upper) |
Returns whether a value lies between a given range up to a weak epsilon border. More... | |
static constexpr bool | isBelow (const T value, const T upper, const T epsilon=NumericT< T >::eps()) |
Returns whether a parameter lies on or below a given border tolerating a small epsilon. More... | |
static constexpr bool | isAbove (const T value, const T lower, const T epsilon=NumericT< T >::eps()) |
Returns whether a parameter lies on or above a given border tolerating a small epsilon. More... | |
static constexpr T | nan () |
Returns a value which is not a number (nan). More... | |
static bool | isNan (const T value) |
Returns whether a given value is not a number. More... | |
static bool | isNan (const std::complex< T > &value) |
Returns whether a given value is not a number. More... | |
static constexpr T | inf () |
Returns a value which is positive infinity. More... | |
static bool | isInf (const T value) |
Returns whether a given value is positive or negative infinity. More... | |
static bool | isInf (const std::complex< T > &value) |
Returns whether a given value is positive or negative infinity. More... | |
template<typename TValue > | |
static bool | isInsideValueRange (const TValue &value) |
Returns whether a given value of an arbitrary data type fits into the value range of 'T'. More... | |
static constexpr T | deg2rad (const T deg) |
Converts deg to rad. More... | |
static constexpr T | rad2deg (const T rad) |
Converts rad to deg. More... | |
static constexpr T | maxValue () |
Returns the max scalar value. More... | |
static constexpr T | minValue () |
Returns the min scalar value. More... | |
static constexpr T | sign (const T &value) |
Returns the sign of a given value by either returning -1, 0, or +1. More... | |
static constexpr T | copySign (const T signReceiver, const T signProvider) |
Copies the sign of a given value to another one. More... | |
static constexpr T | invertSign (const T signReceiver, const T signProvider) |
Copies the inverted sign of a given value to another one. More... | |
static T | pythagoras (const T a, const T b) |
Returns the length of the hypotenuse of a given right-angled triangle. More... | |
static T | gaussianDistribution (const T x, const T sigma) |
Returns a value of the univariate Gaussian distribution centered around the origin. More... | |
static T | gaussianDistribution (const T x, const T x0, const T sigma) |
Returns a value of the univariate Gaussian distribution centered around a given position x0. More... | |
static T | normalizedGaussianDistribution (const T x, const T sigma) |
Returns a value of the normalized univariate Gaussian distribution centered around the origin. More... | |
static T | normalizedGaussianDistribution (const T x, const T x0, const T sigma) |
Returns a value of the normalized univariate Gaussian distribution around a given position x0. More... | |
static T | gaussianDistribution2 (const T x, const T y, const T sigmaX, const T sigmaY) |
Returns a value of the bivariate Gaussian distribution centered around the origin. More... | |
static T | gaussianDistribution2 (const T x, const T y, const T x0, const T y0, const T sigmaX, const T sigmaY) |
Returns a value of the bivariate Gaussian distribution centered around a given position (x0, y0). More... | |
static T | normalizedGaussianDistribution2 (const T x, const T y, const T sigmaX, const T sigmaY) |
Returns a value of the normalized bivariate Gaussian distribution centered around the origin. More... | |
static T | normalizedGaussianDistribution2 (const T x, const T y, const T x0, const T y0, const T sigmaX, const T sigmaY) |
Returns a value of the normalized bivariate Gaussian distribution centered around a given position (x0, y0). More... | |
static T | gaussianDistribution3 (const T x, const T y, const T z, const T sigmaX, const T sigmaY, const T sigmaZ) |
Returns a value of the trivariate Gaussian distribution centered around the origin. More... | |
static T | gaussianDistribution3 (const T x, const T y, const T z, const T x0, const T y0, const T z0, const T sigmaX, const T sigmaY, const T sigmaZ) |
Returns a value of the trivariate Gaussian distribution centered around a given position (x0, y0, z0). More... | |
static T | normalizedGaussianDistribution3 (const T x, const T y, const T z, const T sigmaX, const T sigmaY, const T sigmaZ) |
Returns a value of the normalized trivariate Gaussian distribution centered around the origin. More... | |
static T | normalizedGaussianDistribution3 (const T x, const T y, const T z, const T x0, const T y0, const T z0, const T sigmaX, const T sigmaY, const T sigmaZ) |
Returns a value of the normalized trivariate Gaussian distribution centered around a given position (x0, y0, z0). More... | |
This class provides basic numeric functionalities.
T | Data type of the numeric elements |
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inlinestatic |
Returns the absolute value of a given value.
Beware some values do not have a corresponding absolute value e.g., -128 for (8bit signed chars), -32768 for (16bit signed chars), and so on.
value | The value for which the absolute value will be returned |
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::abs().
|
inline |
Specialization of NumericT::acos().
|
inlinestatic |
Returns the arccosine of a given value.
value | The value to return the arc cosine from, with range [-1, 1] |
|
inlinestatic |
Adjusts an arbitrary angle into the range of (-PI, PI].
angle | The angle to be adjusted, defined in radian, with range (-infinity, infinity) |
|
inlinestatic |
Adjusts an arbitrary angle into the range of [0.0, 2PI).
angle | The angle to be adjusted, defined in radian, with range (-infinity, infinity) |
|
inlinestatic |
Adjusts an arbitrary angle into the range of [0.0, PI).
angle | The angle to be adjusted, defined in radian, with range (-infinity, infinity) |
|
inlinestatic |
Returns the angular difference (distance between two angles).
angleA | First angle specified in radian, with range (-infinity, infinity) |
angleB | Second angle specified in radian, with range (-infinity, infinity) |
|
inlinestatic |
Returns whether the angular difference (distance) between two angles is smaller than a specified threshold.
angleA | First angle specified in radian, with range (-infinity, infinity) |
angleB | Second angle specified in radian, with range (-infinity, infinity) |
threshold | Positive angular threshold in radian with range [0, PI) |
|
inlinestatic |
Returns whether two angles represent the same angle up to a small epsilon.
angleA | First angle specified in radian, with range (-infinity, infinity) |
angleB | Second angle specified in radian, with range (-infinity, infinity) |
|
inlinestatic |
Returns whether two angles represent the same angle up to a given epsilon.
angleA | First angle specified in radian, with range (-infinity, infinity) |
angleB | Second angle specified in radian, with range (-infinity, infinity) |
epsilon | Accuracy epsilon in radian, with range [0, infinity) |
|
inlinestatic |
Returns whether two angles represent the same angle up to a weak epsilon.
angleA | First angle specified in radian, with range (-infinity, infinity) |
angleB | Second angle specified in radian, with range (-infinity, infinity) |
|
inline |
Specialization of NumericT::asin().
|
inlinestatic |
Returns the arcsine of a given value.
value | The value to return the arc sine from, with range [-1, 1] |
|
inline |
Specialization of NumericT::atan().
|
inlinestatic |
Returns the arctangent of a given value.
value | The value to return the arctangent from |
|
inline |
Specialization of NumericT::atan2().
|
inlinestatic |
Returns the arctangent of a given value in radian.
y | Opposite value, must not be zero if x is zero |
x | Adjacent value, must not be zero if y is zero |
|
inlinestaticconstexpr |
Returns the binomial coefficient for two binomial parameters.
This function calculates: n! / (k! * (n - k)!).
n | Upper binomial coefficient parameter, with range [0, infinity) |
k | Lower binomial coefficient parameter, with range [0, n] |
|
inline |
Specialization of NumericT::ceil().
|
inline |
Specialization of NumericT::ceil().
|
inline |
Specialization of NumericT::ceil().
|
inlinestatic |
Returns the smallest integer value that is not less than the given value.
value | The value to handle, with range (-infinity, infinity) |
|
inlineconstexpr |
Specialization of NumericT::copySign().
|
inlineconstexpr |
Specialization of NumericT::copySign().
|
inlinestaticconstexpr |
Copies the sign of a given value to another one.
signReceiver | First value receiving the sign from the second value |
signProvider | Second value providing the sign for the first one |
|
inline |
Specialization of NumericT::cos().
|
inlinestatic |
Returns the cosine of a given value.
value | The value to return the cosine from, with range (-infinity, infinity) |
|
inlinestaticconstexpr |
Converts deg to rad.
deg | Angle in deg, with range (-infinity, infinity) |
|
inlinestatic |
Returns the dot product for two vectors.
vectorA | The first vector, can be nullptr if size is 0 |
vectorB | The second vector, can be nullptr if size is 0 |
size | The size/dimension of both vector (the number of elements each vector holds), with range [0, infinity) |
|
staticconstexpr |
Returns the euler's number.
|
staticconstexpr |
Returns a small epsilon.
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
constexpr |
Specialization of NumericT::eps().
|
inline |
|
inlinestatic |
Returns the base-e exponential function of a given value.
value | The value to determine the exponential value for, with range (-infinity, infinity) |
|
inlinestaticconstexpr |
Returns the factorial for a given value.
value | The value for that the factorial will be determined, with range [0, infinity) for floating point types; with range [0, 12] for 32 bit integer types |
|
inlineconstexpr |
|
inline |
Specialization of NumericT::floor().
|
inline |
Specialization of NumericT::floor().
|
inline |
Specialization of NumericT::floor().
|
inlinestatic |
Returns the largest integer value that is not greater than the given value.
value | The value to handle, with range (-infinity, infinity) |
|
inline |
Specialization of NumericT::fmod().
|
inlinestatic |
Returns the floating-point remainder of a given value.
valueA | Value to return the floating-point remainder from |
valueB | Divisor value |
|
inlinestatic |
Returns a value of the univariate Gaussian distribution centered around the origin.
x | Value to return the Gaussian distribution value for |
sigma | The sigma parameter defining the standard deviation of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the univariate Gaussian distribution centered around a given position x0.
x | Value to return the Gaussian distribution value for |
x0 | X value for the center of the Gaussian distribution |
sigma | The sigma parameter defining the standard deviation of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the bivariate Gaussian distribution centered around the origin.
x | X value for the function |
y | Y value for the function |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the bivariate Gaussian distribution centered around a given position (x0, y0).
x | X value for the function |
y | Y value for the function |
x0 | X value for the center of the Gaussian distribution |
y0 | Y value for the center of the Gaussian distribution |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the trivariate Gaussian distribution centered around the origin.
x | X value for the function |
y | Y value for the function |
z | Z value for the function |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
sigmaZ | Sigma parameter defining the standard deviation for the z-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the trivariate Gaussian distribution centered around a given position (x0, y0, z0).
x | X value for the function |
y | Y value for the function |
z | Z value for the function |
x0 | X value for the center of the Gaussian distribution |
y0 | Y value for the center of the Gaussian distribution |
z0 | Z value for the center of the Gaussian distribution |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
sigmaZ | Sigma parameter defining the standard deviation for the z-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestaticconstexpr |
Returns a value which is positive infinity.
|
staticconstexpr |
Returns x raised to the power of y while y is an integer.
x | X value, with range [0, infinity) |
y | Y value, with range (-infinity, infinity) |
|
inlineconstexpr |
Specialization of NumericT::invertSign().
|
inlineconstexpr |
Specialization of NumericT::invertSign().
|
inlinestaticconstexpr |
Copies the inverted sign of a given value to another one.
signReceiver | First value receiving the inverted sign from the second value |
signProvider | Second value providing the inverted sign for the first one |
|
staticconstexpr |
Returns whether a parameter lies on or above a given border tolerating a small epsilon.
value | The value to check, with range (-infinity, infinity) |
lower | The lower border, with range (-infinity, infinity) |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
staticconstexpr |
Returns whether a parameter lies on or below a given border tolerating a small epsilon.
value | The value to check, with range (-infinity, infinity) |
upper | The upper border, with range (-infinity, infinity) |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Returns whether two complex values are equal up to a small epsilon.
first | The first value to check |
second | The second value to check |
|
inlinestatic |
Returns whether two complex values are equal up to a given epsilon.
first | The first value to check |
second | The second value to check |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
inlinestatic |
Returns whether two values are equal up to a small epsilon.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
|
inlinestatic |
Returns whether two values are equal up to a given epsilon.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
inlinestatic |
Returns whether two values are equal up to a dynamic epsilon which is adjusted due to the magnitude of both values and the reference magnitude.
The reference magnitude (provided as template parameter) corresponds to the provided reference epsilon.
That means that if the magnitude of both values to compare is equal to the defined reference magnitude the given epsilon value is used for comparison.
Otherwise the given epsilon is increased by 10 times the difference between the magnitude of the values and the reference magnitude, the epsilon value will not be decreased if the actual magnitude is smaller than the reference magnitude.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
referenceEpsilon | The accuracy epsilon for the specified magnitude, with range [0, infinity) |
tMagnitude | The reference magnitude for which the specified epsilon must hold so that both values count as equal, with range [-20, 20] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Returns whether a complex value is smaller than or equal to a small epsilon.
value | Complex value to check |
|
inlinestaticconstexpr |
Returns whether a value is smaller than or equal to a small epsilon.
value | The value to check, with range (-infinity, infinity) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Returns whether a given value is positive or negative infinity.
Only floating point values can be infinity.
value | The value to check |
|
inlinestatic |
Returns whether a given value is positive or negative infinity.
Only floating point values can be infinity.
value | The value to check |
|
staticconstexpr |
Returns whether a value lies between a given range up to a provided epsilon border.
lower | The lower border, with range (-infinity, infinity) |
value | The value to check, with range (-infinity, infinity) |
upper | The upper border, with range [lower, infinity) |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
inlinestatic |
Returns whether a given value of an arbitrary data type fits into the value range of 'T'.
Below the behavior for individual data types:
T TValue return A A true float float true double double true uint8_t int8_t >= 0 int8_t uint8_t <= 127 uint8_t uint16_t true uint8_t uint32_t true ... float Integral false double Integral false Integral float false Integral double false
value | The value to check, with range (-infinity, infinity) |
TValue | The data type of the given value |
|
staticconstexpr |
Returns whether a value lies between a given range up to a weak epsilon border.
lower | The lower border, with range (-infinity, infinity) |
value | The value to check, with range (-infinity, infinity) |
upper | The upper border, with range [lower, infinity) |
|
inline |
|
inline |
|
inlinestatic |
Returns whether a given value is not a number.
value | The value to check |
|
inlinestatic |
Returns whether a given value is not a number.
value | The value to check |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Returns whether two complex values are not equal up to a small epsilon.
first | The first value to check |
second | The second value to check |
|
inlinestatic |
Returns whether two complex values are not equal up to a given epsilon.
first | The first value to check |
second | The second value to check |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
inlinestatic |
Returns whether two values are not equal up to a small epsilon.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
|
inlinestatic |
Returns whether two values are not equal up to a given epsilon.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
epsilon | Accuracy epsilon, with range [0, infinity) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Returns whether a complex value is not smaller than or equal to a small epsilon.
value | Complex value to check |
|
inlinestaticconstexpr |
Returns whether a value is not smaller than or equal to a small epsilon.
value | The value to check, with range (-infinity, infinity) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Returns whether two complex values are not equal up to a weak epsilon.
first | The first value to check |
second | The second value to check |
|
inlinestatic |
Returns whether two values are not equal up to a weak epsilon.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Returns whether a complex value is not smaller than or equal to a weak epsilon.
value | Complex value to check |
|
inlinestaticconstexpr |
Returns whether a value is not smaller than or equal to a weak epsilon.
value | The value to check, with range (-infinity, infinity) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inlinestatic |
Returns whether two complex values are equal up to a weak epsilon.
first | The first value to check |
second | The second value to check |
|
inlinestatic |
Returns whether two values a equal up to a weak epsilon.
first | The first value to check, with range (-infinity, infinity) |
second | The second value to check, with range (-infinity, infinity) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Returns whether a complex value is smaller than or equal to a weak epsilon.
value | Complex value to check |
|
inlinestaticconstexpr |
Returns whether a value is smaller than or equal to a weak epsilon.
value | The value to check, with range (-infinity, infinity) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inlinestatic |
Returns the natural logarithm of a given value (the logarithm to the base e).
value | The value to return the logarithm for, with range (0, infinity) |
|
inline |
|
inlinestatic |
Returns the logarithm to base 10 of a given value.
value | The value to return the logarithm for, with range (0, infinity) |
|
inline |
|
inlinestatic |
Returns the natural logarithm of a given value plus 1 (the logarithm to the base e).
This function has better precision than log(1 + value) when value is close to 0.
value | Input for which logarithm of (1 + value) will be returned, with range (-1, infinity) |
|
inline |
Specialization of NumericT::log2().
|
inlinestatic |
Returns the logarithm to base 2 of a given value.
value | The value to return the logarithm for, with range (0, infinity) |
|
inlinestaticconstexpr |
Returns the max scalar value.
|
inlinestaticconstexpr |
Returns the min scalar value.
|
inlinestaticconstexpr |
Returns a value which is not a number (nan).
|
inlinestatic |
Returns a value of the normalized univariate Gaussian distribution centered around the origin.
As the result is normalized, the resulting Gaussian distribution value is 1 at the origin.
x | Value to return the Gaussian distribution value for |
sigma | The sigma parameter defining the standard deviation of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the normalized univariate Gaussian distribution around a given position x0.
As the result is normalized, the resulting Gaussian distribution value is 1 at the given position x0.
x | Value to return the Gaussian distribution value for |
x0 | X value for the center of the Gaussian distribution |
sigma | The sigma parameter defining the standard deviation of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the normalized bivariate Gaussian distribution centered around the origin.
As the result is normalized, the resulting Gaussian distribution value is 1 at the origin.
x | X value for the function |
y | Y value for the function |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the normalized bivariate Gaussian distribution centered around a given position (x0, y0).
As the result is normalized, the resulting Gaussian distribution value is 1 at the given position (x0, y0).
x | X value for the function |
y | Y value for the function |
x0 | X value for the center of the Gaussian distribution |
y0 | Y value for the center of the Gaussian distribution |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the normalized trivariate Gaussian distribution centered around the origin.
As the result is normalized, the resulting Gaussian distribution value is 1 at the origin.
x | X value for the function |
y | Y value for the function |
z | Z value for the function |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
sigmaZ | Sigma parameter defining the standard deviation for the z-axis of the Gaussian distribution, with range (0, infinity) |
|
inlinestatic |
Returns a value of the normalized trivariate Gaussian distribution centered around a given position (x0, y0, z0).
As the result is normalized, the resulting Gaussian distribution value is 1 at the given position (x0, y0, z0).
x | X value for the function |
y | Y value for the function |
z | Z value for the function |
x0 | X value for the center of the Gaussian distribution |
y0 | Y value for the center of the Gaussian distribution |
z0 | Z value for the center of the Gaussian distribution |
sigmaX | Sigma parameter defining the standard deviation for the x-axis of the Gaussian distribution, with range (0, infinity) |
sigmaY | Sigma parameter defining the standard deviation for the y-axis of the Gaussian distribution, with range (0, infinity) |
sigmaZ | Sigma parameter defining the standard deviation for the z-axis of the Gaussian distribution, with range (0, infinity) |
|
staticconstexpr |
Returns PI which is equivalent to 180 degree.
|
staticconstexpr |
Returns 2*PI which is equivalent to 360 degree.
|
staticconstexpr |
Returns PI/2 which is equivalent to 90 degree.
|
staticconstexpr |
Returns PI/3 which is equivalent to 60 degree.
|
staticconstexpr |
Returns PI/4 which is equivalent to 45 degree.
|
inline |
Specialization of NumericT::pow().
|
inlinestatic |
Returns x raised to the power of y.
x | X value |
y | Y value |
|
inlinestatic |
Returns x raised to the power of y.
x | X value, with range (-infinity, infinity), must not be negative if y < 1 |
y | Y value, with range (-infinity, infinity) |
|
static |
Returns the length of the hypotenuse of a given right-angled triangle.
This function avoids the calculation of square values of a and b.
a | Length of the first leg |
b | Length of the second leg |
|
inlinestaticconstexpr |
Converts rad to deg.
rad | Angle in radian, with range (-infinity, infinity) |
|
inlinestaticconstexpr |
Returns the ratio between two values if the denominator is not equal a small epsilon.
nominator | The nominator of the resulting ratio |
denominator | The denominator of the resulting ratio |
fallback | The fallback value if the denominator is equal eps() |
|
inlinestaticconstexpr |
Returns the rounded 32 bit integer value of a given value.
The function applies a symmetric rounding:
Input: -1.50 -1.49 -0.50 -0.49 | 0.49 0.50 1.49 1.50 Output: -2 -1 -1 0 | 0 1 1 2 So that for positive integer x: x <- [x - 0.5, x + 0.5) and for negative integer x: x <- (x - 0.5, x + 0.5]
value | The value to handle, with range (-infinity, infinity) |
|
inlinestaticconstexpr |
Returns the rounded 64 bit integer value of a given value.
The function applies a symmetric rounding:
Input: -1.50 -1.49 -0.50 -0.49 | 0.49 0.50 1.49 1.50 Output: -2 -1 -1 0 | 0 1 1 2 So that for positive integer x: x <- [x - 0.5, x + 0.5) and for negative integer x: x <- (x - 0.5, x + 0.5]
value | The value to handle, with range (-infinity, infinity) |
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inlinestatic |
Returns the absolute value of a given value while the return value is guaranteed to be the absolute value of the input value.
This function returns the unsigned data type T (if possible) and ensures that the absolute value of the minimal integer value is correct.
value | The value for which the absolute value will be returned |
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inline |
Specialization of NumericT::secureAbs().
|
inlinestaticconstexpr |
Returns the sign of a given value by either returning -1, 0, or +1.
Negative values have return value -1, 0 has return value 0, and positive values have return value +1.
value | The value for which the sign will be returned |
|
inline |
Specialization of NumericT::sin().
|
inlinestatic |
Returns the sine of a given value.
value | The value to return the sine from, with range (-infinity, infinity) |
|
inlinestaticconstexpr |
Returns the square of a given value.
value | The value to return the square from |
|
inlinestaticconstexpr |
Returns the square distance between two values.
value0 | First value |
value1 | Second value |
|
inline |
Specialization of NumericT::sqrt().
|
inline |
Specialization of NumericT::sqrt().
|
inlinestatic |
Returns the square root of a given value.
value | The value to return the square root from |
|
inlinestatic |
Returns the square root of a given value.
value | The value to return the square root from, with range [0, infinity) |
|
staticconstexpr |
Returns the square of PI i.e., PI^2.
|
staticconstexpr |
Returns the square of two PI i.e., (2*PI)^2.
|
staticconstexpr |
Returns the square of PI half i.e., (PI/2)^2.
|
inlinestatic |
Returns the sum of given values.
values | The values to return the sum from |
number | The number of given values |
|
inlinestatic |
Returns the summed squares of a given values.
values | The values to return the summed squares from |
number | The number of given values |
|
inline |
Specialization of NumericT::tan().
|
inlinestatic |
Returns the tangent of a given value.
value | The value to return the tangent from, with range (-infinity, infinity) |
|
staticconstexpr |
Returns a weak epsilon.
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().
|
constexpr |
Specialization of NumericT::weakEps().