#include <matrix.h>
#include <selforg/position.h>
#include "osgforwarddecl.h"
#include <osg/Math>
Include dependency graph for mathutils.h:

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

Go to the source code of this file.
Namespaces | |
| namespace | lpzrobots |
Functions | |
| template<typename T> | |
| T | lpzrobots::clip (T v, T minimum, T maximum) |
| template<typename T> | |
| T | lpzrobots::abs (T v) |
| template<typename T> | |
| T | lpzrobots::normalize360 (T v) |
| Matrix | lpzrobots::osgMatrix2Matrixlib (const osg::Matrix &m) |
| converts osg matrix to matrix of matrixlib | |
| osg::Matrix | lpzrobots::rotationMatrixFromAxisX (const Axis &axis) |
| returns a Rotation matrix that rotates the x-axis along with the given axis. | |
| osg::Matrix | lpzrobots::rotationMatrixFromAxisZ (const Axis &axis) |
| returns a Rotation matrix that rotates the z-axis along with the given axis. | |
| double | lpzrobots::getAngle (const osg::Vec3 &a, const osg::Vec3 &b) |
| returns the angle between two vectors (in rad) | |
| Position | lpzrobots::multMatrixPosition (const matrix::Matrix &r, Position &p) |
| Multiplies 3x3 matrix with position. | |
| Matrix | lpzrobots::getRotationMatrix (const double &angle) |
| returns a rotation matrix with the given angle | |
| Matrix | lpzrobots::getTranslationMatrix (const Position &p) |
| returns a translation matrix with the given Position | |
| matrix::Matrix | lpzrobots::removeTranslationInMatrix (const matrix::Matrix &pose) |
| removes the translation in the matrix | |
| matrix::Matrix | lpzrobots::removeRotationInMatrix (const matrix::Matrix &pose) |
| removes the rotation in the matrix | |
| double | lpzrobots::getAngle (Position a, Position b) |
| returns the angle between two vectors | |
1.4.5