Simbody
Classes | Namespaces | Typedefs

Quaternion.h File Reference

#include "SimTKcommon/SmallMatrix.h"
#include "SimTKcommon/internal/UnitVec.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  SimTK::Quaternion_< P >
 A Quaternion is a Vec4 with the following behavior:

  • its length is always 1 (or else it is all NaN)
  • it is equivalent to an angle/axis rotation for angle a, axis unit vector v, as: q = [ cos(a/2) sin(a/2)*v ] A quaternion is in "canonical form" when its first element is nonnegative.
More...

Namespaces

namespace  SimTK
 

This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with other symbols.


Typedefs

typedef Quaternion_< Real > SimTK::Quaternion
typedef Quaternion_< float > SimTK::fQuaternion
typedef Quaternion_< double > SimTK::dQuaternion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines