HDK
|
Go to the source code of this file.
Functions | |
template<class T > | |
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE T | sinx_over_x (T x) |
template<class T > | |
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 bool | equalWithAbsError (T x1, T x2, T e) IMATH_NOEXCEPT |
template<class T > | |
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 bool | equalWithRelError (T x1, T x2, T e) IMATH_NOEXCEPT |
|
inline |
Compare two numbers and test if they are "approximately equal":
abs (x1 - x2) <= e
Definition at line 152 of file ImathMath.h.
|
inline |
Compare two numbers and test if they are "approximately equal":
abs (x1 - x2) <= e * x1
Definition at line 165 of file ImathMath.h.
|
inline |
Don Hatch's version of sin(x)/x, which is accurate for very small x. Returns 1 for x == 0.
Definition at line 136 of file ImathMath.h.