mantaflow  0.10
A framework for fluid simulation
Public Member Functions | Public Attributes | List of all members
Manta::Quaternion Class Reference

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
 
Quaternionoperator= (const Quaternion &q)
 Assign operator.
 
Quaternionoperator*= (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
 

Detailed Description

Very basic quaternion class.


The documentation for this class was generated from the following file: