|
template<typename T > |
T | osg::absolute (T v) |
|
bool | osg::equivalent (float lhs, float rhs, float epsilon=1e-6) |
| return true if float lhs and rhs are equivalent, meaning that the difference between them is less than an epsilon value which defaults to 1e-6. More...
|
|
bool | osg::equivalent (double lhs, double rhs, double epsilon=1e-6) |
| return true if double lhs and rhs are equivalent, meaning that the difference between them is less than an epsilon value which defaults to 1e-6. More...
|
|
template<typename T > |
T | osg::minimum (T lhs, T rhs) |
| return the minimum of two values, equivalent to std::min. More...
|
|
template<typename T > |
T | osg::maximum (T lhs, T rhs) |
| return the maximum of two values, equivalent to std::max. More...
|
|
template<typename T > |
T | osg::clampTo (T v, T minimum, T maximum) |
|
template<typename T > |
T | osg::clampAbove (T v, T minimum) |
|
template<typename T > |
T | osg::clampBelow (T v, T maximum) |
|
template<typename T > |
T | osg::clampBetween (T v, T minimum, T maximum) |
|
template<typename T > |
T | osg::sign (T v) |
|
template<typename T > |
T | osg::signOrZero (T v) |
|
template<typename T > |
T | osg::square (T v) |
|
template<typename T > |
T | osg::signedSquare (T v) |
|
float | osg::inDegrees (float angle) |
|
double | osg::inDegrees (double angle) |
|
template<typename T > |
T | osg::inRadians (T angle) |
|
float | osg::DegreesToRadians (float angle) |
|
double | osg::DegreesToRadians (double angle) |
|
float | osg::RadiansToDegrees (float angle) |
|
double | osg::RadiansToDegrees (double angle) |
|
float | osg::round (float v) |
|
double | osg::round (double v) |
|
bool | osg::isNaN (float v) |
|
bool | osg::isNaN (double v) |
|
template<typename T > |
float | osg::computeVolume (const T &a, const T &b, const T &c, const T &d) |
| compute the volume of a tetrahedron. More...
|
|
template<typename T > |
float | osg::computeVolume (const T &f1, const T &f2, const T &f3, const T &b1, const T &b2, const T &b3) |
| compute the volume of a prism. More...
|
|
OSG_EXPORT double | osg::asciiToDouble (const char *str) |
| Convert a ascii number to a double, ignoring locale settings. More...
|
|
float | osg::asciiToFloat (const char *str) |
| Convert a ascii number to a float, ignoring locale settings. More...
|
|
OSG_EXPORT double | osg::findAsciiToDouble (const char *str) |
| Detect first ascii POSITIVE number in string and convert to double. More...
|
|
float | osg::findAsciiToFloat (const char *str) |
| Detect first ascii POSITIVE number in string and convert to double. More...
|
|