suanPan
|
An Quaternion class. More...
#include <Quaternion.hpp>
Public Member Functions | |
Quaternion () | |
Quaternion (T, T, T, T) | |
Quaternion (T, const Col< T > &) | |
Quaternion (T, Col< T > &&) | |
const T & | real () const |
const Col< T > & | imag () const |
T | norm () const |
Quaternion & | normalise () |
Quaternion | inv () const |
Quaternion | conj () const |
Quaternion | operator+ (const Quaternion &) const |
Quaternion & | operator+= (const Quaternion &) |
Quaternion | operator- (const Quaternion &) const |
Quaternion & | operator-= (const Quaternion &) |
Quaternion | operator* (const Quaternion &) const |
Quaternion & | operator*= (const Quaternion &) |
Quaternion | operator/ (const Quaternion &) const |
Quaternion & | operator/= (const Quaternion &) |
void | print () const |
Mat< T > | operator* (const Mat< T > &) const |
Mat< T > | to_mat () const |
Col< T > | to_pseudo () const |
Friends | |
bool | operator== (const Quaternion &A, const Quaternion &B) |
Quaternion | operator- (const Quaternion &A) |
Quaternion | operator- (Quaternion &&A) |
|
friend |
|
friend |
|
friend |