Project

General

Profile

OPENXR Scol plugin

Public Member Functions

 Quaternion (float fW, float fX, float fY, float fZ)
 
 Quaternion (const XrQuaternionf q)
 
 Quaternion (const Matrix3 &rot)
 
 Quaternion (const float &rfAngle, const Vector3 &rkAxis)
 
float operator[] (const size_t i) const
 
float & operator[] (const size_t i)
 
void FromAngleAxis (const float &rfAngle, const Vector3 &rkAxis)
 
void FromRotationMatrix (const Matrix3 &kRot)
 
void ToRotationMatrix (Matrix3 &kRot) const
 
Quaternionoperator= (const Quaternion &rkQ)
 
Quaternion operator+ (const Quaternion &rkQ) const
 
Quaternion operator- (const Quaternion &rkQ) const
 
Quaternion operator* (const Quaternion &rkQ) const
 
Quaternion operator* (float fScalar) const
 
Vector3 operator* (const Vector3 &v) const
 
Quaternion operator- () const
 
bool operator== (const Quaternion &rhs) const
 
bool operator!= (const Quaternion &rhs) const
 
float * ptr ()
 
const float * ptr () const
 
float Norm () const
 
float normalise (void)
 
Quaternion Inverse () const
 

Public Attributes

float w
 
float x
 
float y
 
float z
 

Detailed Description

Definition at line 1132 of file vrmaths.h.

Constructor & Destructor Documentation

◆ Quaternion() [1/5]

Quaternion::Quaternion ( )
inline

Definition at line 1137 of file vrmaths.h.

◆ Quaternion() [2/5]

Quaternion::Quaternion ( float  fW,
float  fX,
float  fY,
float  fZ 
)
inline

Definition at line 1139 of file vrmaths.h.

◆ Quaternion() [3/5]

Quaternion::Quaternion ( const XrQuaternionf  q)
inline

Definition at line 1141 of file vrmaths.h.

◆ Quaternion() [4/5]

Quaternion::Quaternion ( const Matrix3 rot)
inline

Definition at line 1149 of file vrmaths.h.

◆ Quaternion() [5/5]

Quaternion::Quaternion ( const float &  rfAngle,
const Vector3 rkAxis 
)
inline

Definition at line 1154 of file vrmaths.h.

Member Function Documentation

◆ FromAngleAxis()

void Quaternion::FromAngleAxis ( const float &  rfAngle,
const Vector3 rkAxis 
)
inline

Definition at line 1169 of file vrmaths.h.

◆ FromRotationMatrix()

void Quaternion::FromRotationMatrix ( const Matrix3 kRot)

Definition at line 67 of file vrmaths.cpp.

◆ Inverse()

Quaternion Quaternion::Inverse ( ) const

Definition at line 27 of file vrmaths.cpp.

◆ Norm()

float Quaternion::Norm ( ) const

Definition at line 14 of file vrmaths.cpp.

◆ normalise()

float Quaternion::normalise ( void  )

Definition at line 19 of file vrmaths.cpp.

◆ operator!=()

bool Quaternion::operator!= ( const Quaternion rhs) const
inline

Definition at line 1240 of file vrmaths.h.

◆ operator*() [1/3]

Quaternion Quaternion::operator* ( const Quaternion rkQ) const
inline

Definition at line 1204 of file vrmaths.h.

◆ operator*() [2/3]

Vector3 Quaternion::operator* ( const Vector3 v) const
inline

Definition at line 1219 of file vrmaths.h.

◆ operator*() [3/3]

Quaternion Quaternion::operator* ( float  fScalar) const
inline

Definition at line 1214 of file vrmaths.h.

◆ operator+()

Quaternion Quaternion::operator+ ( const Quaternion rkQ) const
inline

Definition at line 1196 of file vrmaths.h.

◆ operator-() [1/2]

Quaternion Quaternion::operator- ( ) const
inline

Definition at line 1232 of file vrmaths.h.

◆ operator-() [2/2]

Quaternion Quaternion::operator- ( const Quaternion rkQ) const
inline

Definition at line 1200 of file vrmaths.h.

◆ operator=()

Quaternion & Quaternion::operator= ( const Quaternion rkQ)
inline

Definition at line 1188 of file vrmaths.h.

◆ operator==()

bool Quaternion::operator== ( const Quaternion rhs) const
inline

Definition at line 1236 of file vrmaths.h.

◆ operator[]() [1/2]

float & Quaternion::operator[] ( const size_t  i)
inline

Definition at line 1164 of file vrmaths.h.

◆ operator[]() [2/2]

float Quaternion::operator[] ( const size_t  i) const
inline

Definition at line 1159 of file vrmaths.h.

◆ ptr() [1/2]

float * Quaternion::ptr ( )
inline

Definition at line 1244 of file vrmaths.h.

◆ ptr() [2/2]

const float * Quaternion::ptr ( ) const
inline

Definition at line 1248 of file vrmaths.h.

◆ ToRotationMatrix()

void Quaternion::ToRotationMatrix ( Matrix3 kRot) const

Definition at line 41 of file vrmaths.cpp.

Member Data Documentation

◆ w

float Quaternion::w

Definition at line 1135 of file vrmaths.h.

◆ x

float Quaternion::x

Definition at line 1135 of file vrmaths.h.

◆ y

float Quaternion::y

Definition at line 1135 of file vrmaths.h.

◆ z

float Quaternion::z

Definition at line 1135 of file vrmaths.h.


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