Public Member Functions | Public Attributes
quat Struct Reference

#include <tgMathlib.h>

List of all members.

Public Member Functions

 operator const float * () const
 operator float * ()
quat operator* (const quat &q) const
float & operator[] (int i)
float operator[] (int i) const
 quat ()
 quat (const vec3 &dir, float angle)
 quat (float x, float y, float z, float angle)
 quat (const mat3 &m)
void set (const vec3 &dir, float angle)
void set (float x, float y, float z, float angle)
void slerp (const quat &q0, const quat &q1, float t)
mat3 to_matrix () const

Public Attributes

union {
   struct {
      float   w
      float   x
      float   y
      float   z
   } 
   float   q [4]
}; 

Detailed Description

Definition at line 865 of file tgMathlib.h.


Constructor & Destructor Documentation

quat::quat ( ) [inline]

Definition at line 867 of file tgMathlib.h.

quat::quat ( const vec3 dir,
float  angle 
) [inline]

Definition at line 868 of file tgMathlib.h.

quat::quat ( float  x,
float  y,
float  z,
float  angle 
) [inline]

Definition at line 871 of file tgMathlib.h.

quat::quat ( const mat3 m) [inline]

Definition at line 874 of file tgMathlib.h.


Member Function Documentation

quat::operator const float * ( ) const [inline]

Definition at line 900 of file tgMathlib.h.

quat::operator float * ( ) [inline]

Definition at line 899 of file tgMathlib.h.

quat quat::operator* ( const quat q) const [inline]

Definition at line 905 of file tgMathlib.h.

float& quat::operator[] ( int  i) [inline]

Definition at line 902 of file tgMathlib.h.

float quat::operator[] ( int  i) const [inline]

Definition at line 903 of file tgMathlib.h.

void quat::set ( const vec3 dir,
float  angle 
) [inline]

Definition at line 914 of file tgMathlib.h.

void quat::set ( float  x,
float  y,
float  z,
float  angle 
) [inline]

Definition at line 928 of file tgMathlib.h.

void quat::slerp ( const quat q0,
const quat q1,
float  t 
) [inline]

Definition at line 932 of file tgMathlib.h.

mat3 quat::to_matrix ( ) const [inline]

Definition at line 962 of file tgMathlib.h.


Member Data Documentation

union { ... }
float quat::q[4]

Definition at line 986 of file tgMathlib.h.

float quat::w

Definition at line 984 of file tgMathlib.h.

float quat::x

Definition at line 984 of file tgMathlib.h.

float quat::y

Definition at line 984 of file tgMathlib.h.

float quat::z

Definition at line 984 of file tgMathlib.h.


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


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12