$search

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) const
float & operator[] (int i)
 quat (const mat3 &m)
 quat (float x, float y, float z, float angle)
 quat (const vec3 &dir, float angle)
 quat ()
void set (float x, float y, float z, float angle)
void set (const vec3 &dir, 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 862 of file tgMathlib.h.


Constructor & Destructor Documentation

quat::quat (  )  [inline]

Definition at line 864 of file tgMathlib.h.

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

Definition at line 865 of file tgMathlib.h.

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

Definition at line 868 of file tgMathlib.h.

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

Definition at line 871 of file tgMathlib.h.


Member Function Documentation

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

Definition at line 897 of file tgMathlib.h.

quat::operator float * (  )  [inline]

Definition at line 896 of file tgMathlib.h.

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

Definition at line 902 of file tgMathlib.h.

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

Definition at line 900 of file tgMathlib.h.

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

Definition at line 899 of file tgMathlib.h.

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

Definition at line 925 of file tgMathlib.h.

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

Definition at line 911 of file tgMathlib.h.

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

Definition at line 929 of file tgMathlib.h.

mat3 quat::to_matrix (  )  const [inline]

Definition at line 959 of file tgMathlib.h.


Member Data Documentation

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

Definition at line 983 of file tgMathlib.h.

float quat::w

Definition at line 981 of file tgMathlib.h.

float quat::x

Definition at line 981 of file tgMathlib.h.

float quat::y

Definition at line 981 of file tgMathlib.h.

float quat::z

Definition at line 981 of file tgMathlib.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Fri Mar 1 16:57:55 2013