Functions | |
float | dotProduct (osg::Vec3f &a, osg::Vec3f &b) |
double | dotProduct (osg::Vec3d &a, osg::Vec3d &b) |
float | distance (osg::Vec3f &a, osg::Vec3f &b) |
double | distance (osg::Vec3d &a, osg::Vec3d &b) |
osg::Vec4d | rotateVectorAroundAxis (osg::Vec4d &vector, osg::Vec4d &axis, double angle) |
osg::Vec3 | quaternionToEuler (osg::Quat &q) |
osg::Quat | eulerToQuaternion (osg::Vec3 &rotation) |
osg::Matrix | makeEulerRotation (osg::Vec3f rotation) |
bool | getIntersection (const double fDst1, const double fDst2, const osg::Vec3d &P1, const osg::Vec3d &P2, osg::Vec3d &hit) |
bool | inBox (osg::Vec3d &hit, const osg::Vec3d &B1, const osg::Vec3d &B2, const int axis) |
bool | getLineBoxIntersection (const osg::BoundingBox &boundingBox, const osg::Vec3d &lineStart, const osg::Vec3d &lineEnd, osg::Vec3d &hit) |
bool | getLineSphereIntersection (const osg::BoundingSphere &boundingSphere, const osg::Vec3d &direction, const osg::Vec3d &point, osg::Vec3d &hit1, osg::Vec3d &hit2) |
void | getRayFromCamera (const osg::Camera *camera, const int x, const int y, osg::Vec3d &direction, osg::Vec3d &point) |
template<class T > | |
T | getMax (T a, T b, T c) |
Variables | |
const double | PI = 3.1415926535897932384626433832795 |
double util::math::distance | ( | osg::Vec3d & | a, | |
osg::Vec3d & | b | |||
) |
float util::math::distance | ( | osg::Vec3f & | a, | |
osg::Vec3f & | b | |||
) |
double util::math::dotProduct | ( | osg::Vec3d & | a, | |
osg::Vec3d & | b | |||
) |
float util::math::dotProduct | ( | osg::Vec3f & | a, | |
osg::Vec3f & | b | |||
) |
osg::Quat util::math::eulerToQuaternion | ( | osg::Vec3 & | rotation | ) |
bool util::math::getIntersection | ( | const double | fDst1, | |
const double | fDst2, | |||
const osg::Vec3d & | P1, | |||
const osg::Vec3d & | P2, | |||
osg::Vec3d & | hit | |||
) |
bool util::math::getLineBoxIntersection | ( | const osg::BoundingBox & | boundingBox, | |
const osg::Vec3d & | lineStart, | |||
const osg::Vec3d & | lineEnd, | |||
osg::Vec3d & | hit | |||
) |
bool util::math::getLineSphereIntersection | ( | const osg::BoundingSphere & | boundingSphere, | |
const osg::Vec3d & | direction, | |||
const osg::Vec3d & | point, | |||
osg::Vec3d & | hit1, | |||
osg::Vec3d & | hit2 | |||
) |
T util::math::getMax | ( | T | a, | |
T | b, | |||
T | c | |||
) | [inline] |
void util::math::getRayFromCamera | ( | const osg::Camera * | camera, | |
const int | x, | |||
const int | y, | |||
osg::Vec3d & | direction, | |||
osg::Vec3d & | point | |||
) |
bool util::math::inBox | ( | osg::Vec3d & | hit, | |
const osg::Vec3d & | B1, | |||
const osg::Vec3d & | B2, | |||
const int | axis | |||
) |
osg::Matrix util::math::makeEulerRotation | ( | osg::Vec3f | rotation | ) |
osg::Vec3 util::math::quaternionToEuler | ( | osg::Quat & | q | ) |
osg::Vec4d util::math::rotateVectorAroundAxis | ( | osg::Vec4d & | vector, | |
osg::Vec4d & | axis, | |||
double | angle | |||
) |
const double util::math::PI = 3.1415926535897932384626433832795 |