C:/Users/Robert/Documents/Visual Studio 2008/Projects/ferprojekt/TerrainEditor/TerrainEditor/util.cpp File Reference

#include "util.h"

Namespaces

namespace  util
namespace  util::math

Functions

float util::math::dotProduct (osg::Vec3f &a, osg::Vec3f &b)
double util::math::dotProduct (osg::Vec3d &a, osg::Vec3d &b)
float util::math::distance (osg::Vec3f &a, osg::Vec3f &b)
double util::math::distance (osg::Vec3d &a, osg::Vec3d &b)
osg::Vec4d util::math::rotateVectorAroundAxis (osg::Vec4d &vector, osg::Vec4d &axis, double angle)
osg::Vec3 util::math::quaternionToEuler (osg::Quat &q)
osg::Quat util::math::eulerToQuaternion (osg::Vec3 &rotation)
osg::Matrix util::math::makeEulerRotation (osg::Vec3f 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::inBox (osg::Vec3d &hit, const osg::Vec3d &B1, const osg::Vec3d &B2, const int axis)
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)
void util::math::getRayFromCamera (const osg::Camera *camera, const int x, const int y, osg::Vec3d &direction, osg::Vec3d &point)
bool util::isOneOf (const char item, const char *set)
string util::reverse (const string &str)
string util::trim_left (const string &str, const char *trimchars)
string util::trim_right (const string &str, const char *trimchars)
string util::trim (const string &str, const char *trimchars)

Variables

const double util::math::PI = 3.1415926535897932384626433832795

Generated on Thu Jan 14 20:50:12 2010 for TerrainEditor by  doxygen 1.6.1