52 Quarternion(
double x,
double y,
double z,
double w);
void getAxisAndAngle(Vec3D &axis, double &angle) const
Returns the orientation as represented by a rotation around an axis.
Vec3D get3DAngles() const
Constructs a representation of the quarternion using 3 rotations in the lab x-y-z sequence...
friend std::istream & operator>>(std::istream &is, Quarternion &q)
void reset()
Resets a the Quarternion.
Quarternion operator*(const Quarternion &other) const
Multiplication operator.
friend std::ostream & operator<<(std::ostream &os, const Quarternion &q)
Quarternion()
Constructs a basic Quarternion.
Matrix3D getRotationMatrix() const
Implementation of a 3D matrix.
Implementation of a 3D vector (by Vitaliy).
void normalise()
Normalises the Quarternion.
void integrate(const Vec3D &omega, double timeStep)
Integration of the Quarternion using rotational velocity and timestep.