#include <math.h>Namespaces | |
| namespace | osg |
Functions | |
| template<typename T> | |
| T | absolute (T v) |
| float | equivalent (float lhs, float rhs, float epsilon=1e-6) |
| double | equivalent (double lhs, double rhs, double epsilon=1e-6) |
| template<typename T> | |
| T | minimum (T lhs, T rhs) |
| template<typename T> | |
| T | maximum (T lhs, T rhs) |
| template<typename T> | |
| T | clampTo (T v, T minimum, T maximum) |
| template<typename T> | |
| T | clampAbove (T v, T minimum) |
| template<typename T> | |
| T | clampBelow (T v, T maximum) |
| template<typename T> | |
| T | clampBetween (T v, T minimum, T maximum) |
| template<typename T> | |
| T | sign (T v) |
| template<typename T> | |
| T | square (T v) |
| template<typename T> | |
| T | signedSquare (T v) |
| float | inDegrees (float angle) |
| double | inDegrees (double angle) |
| template<typename T> | |
| T | inRadians (T angle) |
| float | DegreesToRadians (float angle) |
| double | DegreesToRadians (double angle) |
| float | RadiansToDegrees (float angle) |
| double | RadiansToDegrees (double angle) |
| bool | isNaN (float v) |
| bool | isNaN (double v) |
| template<typename T> | |
| float | computeVolume (const T &a, const T &b, const T &c, const T &d) |
| template<typename T> | |
| float | computeVolume (const T &f1, const T &f2, const T &f3, const T &b1, const T &b2, const T &b3) |
Variables | |
| const double | PI = 3.14159265358979323846 |
| const double | PI_2 = 1.57079632679489661923 |
| const double | PI_4 = 0.78539816339744830962 |
|
||||||||||
|
return the minimum of two values, equivalent to std::min. std::min not used because of STL implementation under IRIX not containing std::min. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
compute the volume of a prism. |
|
||||||||||||||||||||||||
|
compute the volume of a tetrahedron. |
|
|
|
|
|
|
|
||||||||||||||||
|
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. |
|
||||||||||||||||
|
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. |
|
|
|
|
|
|
|
||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
return the maximum of two values, equivilent to std::max. std::max not used because of STL implementation under IRIX not containing std::max. |
|
||||||||||||||||
|
return the minimum of two values, equivilent to std::min. std::min not used because of STL implementation under IRIX not containing std::min. |
|
|
|
|
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
|
|
|
|
|
|
|
1.4.2