Converters.h File Reference

Contains conversion operators between 3D and physics (here between OSG and ODE). More...

#include <PVLE/Export.h>
#include <ode/ode.h>

Include dependency graph for Converters.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  Physics
 Physics computations and wraping functionalities.

Defines

#define graphVec3   osg::Vec3d
#define graphVec4   osg::Vec4d
#define graphQuat   osg::Quat
#define graphMat   osg::Matrixd
#define graphBB   osg::BoundingBox

Functions

graphVec3 Physics::toGraphVec3 (const dReal *v)
graphVec4 Physics::toGraphVec4 (const dVector4 &v)
void Physics::toPhyVec3 (const graphVec3 &v, dVector3 out_ret)
void Physics::toPhyVec3 (const dReal &x, const dReal &y, const dReal &z, dVector3 out_ret)
void Physics::toPhyVec4 (const graphVec4 &v, dVector4 out_ret)
void Physics::toPhyVec4 (const dReal &x, const dReal &y, const dReal &z, const dReal &w, dVector3 out_ret)
graphQuat Physics::toGraphQuat (const dReal *v)
void Physics::toPhyQuat (const graphQuat &quat, dQuaternion &out_q)
PVLE_EXPORT graphMat Physics::toGraphMatInertia (const dReal *m)
PVLE_EXPORT graphMat Physics::toGraphMatRotation (const dReal *m)
PVLE_EXPORT graphMat Physics::toGraphMatRotationPosition (const dReal *m, const dReal *p)
PVLE_EXPORT void Physics::toPhyMatRotation (const graphMat &matrix, dMatrix3 &out_matrix)
graphBB Physics::toGraphBB (dReal *bb)
void Physics::toPhyBB (const graphBB &bb, dReal *out_bb)
dReal Physics::kmhToms (dReal v)
 Converts km/h to m/s.
dReal Physics::msTokmh (dReal v)
 Converts m/s to km/h.


Detailed Description

Contains conversion operators between 3D and physics (here between OSG and ODE).

Used only for physics. Also defines float or double vectors, quaternions and matrix for Physics namaspace, depending on the real-type (dReal) used during ODE compilation. Caution : ODE rotations are inverted comparing to OSG ones.

Definition in file Converters.h.


Define Documentation

#define graphBB   osg::BoundingBox

Definition at line 71 of file Converters.h.

Referenced by Physics::toGraphBB().

#define graphMat   osg::Matrixd

#define graphQuat   osg::Quat

#define graphVec3   osg::Vec3d

#define graphVec4   osg::Vec4d

Definition at line 68 of file Converters.h.

Referenced by Physics::PlaneHandler::getParams(), and Physics::toGraphVec4().


Generated on Sun Jan 17 11:39:00 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9