mantaflow
0.10
A framework for fluid simulation
|
Very basic quaternion class. More...
#include <quaternion.h>
Public Member Functions | |
Quaternion () | |
default constructor | |
Quaternion (const Quaternion &q) | |
copy constructor | |
Quaternion (Real _x, Real _y, Real _z, Real _w) | |
construct a quaternion from members | |
Quaternion (Vec3 i, Real r) | |
construct a quaternion from imag/real parts | |
Quaternion & | operator= (const Quaternion &q) |
Assign operator. | |
Quaternion & | operator*= (const Real a) |
Assign multiplication operator. | |
Quaternion | inverse () const |
return inverse quaternion | |
Vec3 | imag () |
imaginary part accessor | |
Public Attributes | |
Real | x |
Real | y |
Real | z |
Real | w |
Very basic quaternion class.