Kanzi  3.9.6
Kanzi Engine API
quaternion.hpp File Reference

Classes

class  kanzi::Quaternion
 Quaternions represent rotation around an axis, defined by quaternion components x, y, z and w. More...
 
struct  kanzi::QuaternionLongerPath
 Quaternion for interpolating rotation along longer path. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Functions

Vector3 kanzi::calculateEulerAngles (const Quaternion &quaternion)
 Calculates Euler angles from a quaternion. More...
 
Quaternion kanzi::componentWiseMultiply (const Quaternion &q1, const Quaternion &q2)
 Multiplies quaternion components component-wise and returns the resulting quaternion. More...
 
float kanzi::dotProduct (const Quaternion &q1, const Quaternion &q2)
 Calculates the dot product of two quaternions. More...
 
Quaternion kanzi::inverse (const Quaternion &q)
 Returns an inverse quaternion for a quaternion. More...
 
Quaternion kanzi::matrix4x4ToQuaternion (const Matrix4x4 &matrix)
 Creates a quaternion from Matrix4x4. More...
 
bool kanzi::operator!= (const Quaternion &q1, const Quaternion &q2)
 Inequality comparison operator, compares if two quaternions are exactly not equal. More...
 
Quaternion kanzi::operator* (const Quaternion &q1, const Quaternion &q2)
 Multiplies two quaternions. More...
 
bool kanzi::operator== (const Quaternion &q1, const Quaternion &q2)
 Equality comparison operator, compares if two quaternions are exactly equal. More...
 
Quaternion kanzi::quaternionSlerp (const Quaternion &q1, const Quaternion &q2, float interpolationTime)
 Applies spherical linear interpolation (slerp) to two quaternions using the shortest path. More...
 
Quaternion kanzi::quaternionSlerpLongerPath (const Quaternion &q1, const Quaternion &q2, float interpolationTime)
 Applies spherical linear interpolation (slerp) to two quaternion using the longer path. More...
 
Matrix4x4 kanzi::quaternionToMatrix4x4 (const Quaternion &quaternion)
 Converts a quaternion rotation to a 4x4 rotation matrix. More...
 
Vector3 kanzi::rotateVector (const Quaternion &quaternion, Vector3 vector)
 Applies quaternion rotation to a vector. More...