gForceSDK
gf::Quaternion Class Reference

Data type of quaternion. More...

#include <Quaternion.h>

Public Member Functions

 Quaternion ()
 Default constructor.
 
 Quaternion (float w, float x, float y, float z)
 Constructor with 4 elements.
 
float w () const
 Get W. More...
 
float x () const
 Get X. More...
 
float y () const
 Get Y. More...
 
float z () const
 Get Z. More...
 
std::string toString () const
 Get a human-readable value. More...
 
Euler toEuler () const
 Convert quaternion to Eulerian angle. More...
 

Detailed Description

Data type of quaternion.

Member Function Documentation

◆ toEuler()

Euler gf::Quaternion::toEuler ( ) const
inline

Convert quaternion to Eulerian angle.

Returns
The converted Eulerian angle

◆ toString()

std::string gf::Quaternion::toString ( ) const
inline

Get a human-readable value.

Returns
Value in text for human read convenience

◆ w()

float gf::Quaternion::w ( ) const
inline

Get W.

Returns
The W value

◆ x()

float gf::Quaternion::x ( ) const
inline

Get X.

Returns
The X value

◆ y()

float gf::Quaternion::y ( ) const
inline

Get Y.

Returns
The Y value

◆ z()

float gf::Quaternion::z ( ) const
inline

Get Z.

Returns
The Z value

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