Level H Engine
Classes | Functions
Quaternion.h File Reference
#include "Vec3.h"
#include "Mat4.h"
Include dependency graph for Quaternion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Quaternion
 Contains the Quaternion structure with functions and overloaded operators. More...
 

Functions

Quaternion operator* (Quaternion q1, Quaternion q2)
 Overloads the * operator allowing a Quaternion to be multiplied by another Quaternion. IMPORTANT: (Quaternion1 * Quaternion2) != (Quaternion2 * Quaternion1) More...
 

Function Documentation

◆ operator*()

Quaternion operator* ( Quaternion  q1,
Quaternion  q2 
)
inline

Overloads the * operator allowing a Quaternion to be multiplied by another Quaternion. IMPORTANT: (Quaternion1 * Quaternion2) != (Quaternion2 * Quaternion1)

Parameters
q1One of the input Quaternion's.
q2One of the input Quaternion's.
Returns
The new Quaternion.