Numerical constants and operations. More...
#include <MissingETBase.h>
Static Public Member Functions | |
Access to constants | |
static double | precision () |
Access precision of numerical distance measure for equality. | |
static double | wpxDefault () |
Access default kinematic weight . | |
static double | wpyDefault () |
Access default kinematic weight . | |
static double | wetDefault () |
Access default kinematic weight . | |
static double | wpxError () |
Access error return value for kinematic weight . | |
static double | wpyError () |
Access error return value for kinematic weight . | |
static double | wetError () |
Access error return value for kinematic weight . | |
static double | cpxDefault () |
Access default constituent vector . | |
static double | cpyDefault () |
Access default constituent vector . | |
static double | cpzDefault () |
Access default constituent vector . | |
static double | ceDefault () |
Access default constituent vector . | |
static double | sumptDefault () |
Access default constituent vector sumpt. | |
static double | cpxError () |
Access error return value for constituent vector . | |
static double | cpyError () |
Access error return value for constituent vector . | |
static double | cpzError () |
Access error return value for constituent vector . | |
static double | ceError () |
Access error return value for constituent vector . | |
static double | sumptError () |
Access error return value for constituent vector sumpt. | |
static size_t | invalidIndex () |
Access invalid index indicator. | |
static size_t | unknownIndex () |
Access unknown index indicator. | |
static Types::indexedlink_t | invalidLink () |
Access invaalid link tag. | |
Helpers | |
static bool | isEqual (double x, double y) |
Test of equality. | |
static double | divide (double x, double y) |
Failsafe division. |
Numerical constants and operations.
static double MissingETBase::Numerical::divide | ( | double | x, | |
double | y | |||
) | [inline, static] |
Failsafe division.
This function executes the division of two numbers and such that is
static bool MissingETBase::Numerical::isEqual | ( | double | x, | |
double | y | |||
) | [inline, static] |
Test of equality.
Compares the absolute difference between two numbers with a precision indicator , and declares those two numbers equal if .
true
if the two numbers are identical within the distance , else false
.[in] | x | first number for distance measure |
[in] | y | second number for distance measure |