Itasca C++ Interface
Loading...
Searching...
No Matches
Classes | Functions
quat.h File Reference

2D and 3D quaternion utility classes. More...

#include "avect.h"
#include "matrix.h"
#include "vect.h"
#include <cmath>
#include <cassert>

Go to the source code of this file.

Classes

class  Quat2
 2D quaternion-like utility class. In this case only the angle (in radians) is stored as opposed to the complex number. Multiplication of quaternions is supposed to result in a combined rotation which, in 2D, is the addition of the angles. This is for consitency with the Quat3 class. More...
 
class  Quat3
 3D quaternion utility class. More...
 

Functions

string base::ts (const Quat2 &q, int width, char notation, int precision, char fill)
 
string base::ts (const Quat3 &q, int width, char notation, int precision, char fill)
 

Detailed Description

2D and 3D quaternion utility classes.