imunano33  0.1.1
quaternion.hpp File Reference

File containing the imunano33::Quaternion class. More...

#include <cmath>
#include "imunano33/simplevectors.hpp"
#include "imunano33/unit.hpp"
Include dependency graph for quaternion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  imunano33::Quaternion
 A simple quaternion class for rotations. More...
 

Functions

Quaternion imunano33::operator* (const Quaternion &lhs, const Quaternion &rhs)
 Product of two quaternions. More...
 
bool imunano33::operator== (const Quaternion &lhs, const Quaternion &rhs)
 Equality of two quaternions. More...
 
bool imunano33::operator!= (const Quaternion &lhs, const Quaternion &rhs)
 Inequality of two quaternions. More...
 

Detailed Description

File containing the imunano33::Quaternion class.

Function Documentation

◆ operator!=()

bool imunano33::operator!= ( const Quaternion lhs,
const Quaternion rhs 
)
inline

Inequality of two quaternions.

Parameters
lhsLeft hand argument
rhsRight hand argument
Returns
Whether the two quaternions are not equal

◆ operator*()

Quaternion imunano33::operator* ( const Quaternion lhs,
const Quaternion rhs 
)
inline

Product of two quaternions.

Parameters
lhsLeft hand argument
rhsRight hand argument '
Returns
Product

◆ operator==()

bool imunano33::operator== ( const Quaternion lhs,
const Quaternion rhs 
)
inline

Equality of two quaternions.

Parameters
lhsLeft hand argument
rhsRight hand argument
Returns
Whether the quaternions are equal