![]() |
Functions | |
template<typename T1 , typename T2 > | |
bool | isCloseEnough (const T1 &A, const T2 &B, const double &Epsilon=0.00001) |
template<typename T1 , typename T2 > | |
bool | isVeryClose (const T1 &A, const T2 &B, const double &Epsilon=0.00001) |
bool | IsCloseEnough (double A, double B, double Epsilon=0.00001) OPENFLUID_DEPRECATED |
bool | IsVeryClose (double A, double B, double Epsilon=0.00001) OPENFLUID_DEPRECATED |
template<typename T > | |
T | linearInterpolation (const T &X0, const T &Y0, const T &X1, const T &Y1, const T &X) |
template<typename T > | |
T | linearInterpolationFromXOrigin (const T &Y0, const T &X1, const T &Y1, const T &X) |
|
inline |
Tests equality between two floating point values, using the "close enough" method.
[in] | A | the first term of the equality |
[in] | B | the second term of the equality |
[in] | Epsilon | the comparison tolerance factor |
|
inline |
|
inline |
Tests equality between two floating point values, using the "very close" method.
[in] | A | the first term of the equality |
[in] | B | the seond term of the equality |
[in] | Epsilon | the comparison tolerance factor |
|
inline |
|
inline |
Performs a linear interpolation between (x0,y0) and (x1,y1), giving the y value for the x coordinate
[in] | X0 | the x0 coordinate |
[in] | Y0 | the y0 coordinate |
[in] | X1 | the x1 coordinate |
[in] | Y1 | the y1 coordinate |
[in] | X | the x coordinate |
|
inline |
Performs a linear interpolation between (0,y0) and (x1,y1), giving the y value for the origin x coordinate
[in] | Y0 | the y0 coordinate |
[in] | X1 | the x1 coordinate |
[in] | Y1 | the y1 coordinate |
[in] | X | the x coordinate |