Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
glh::GLH_REAL_NAMESPACE::quaternion Class Reference

#include <glh_linear.h>

List of all members.

Public Member Functions

quaternionconjugate ()
bool equals (const quaternion &r, real tolerance) const
const realget_value () const
void get_value (real &q0, real &q1, real &q2, real &q3) const
void get_value (vec3 &axis, real &radians) const
void get_value (matrix4 &m) const
quaternion inverse () const
quaternioninvert ()
void mult_vec (const vec3 &src, vec3 &dst) const
void mult_vec (vec3 &src_and_dst) const
void normalize ()
quaternionoperator*= (const quaternion &qr)
realoperator[] (int i)
const realoperator[] (int i) const
 quaternion ()
 quaternion (const real v[4])
 quaternion (real q0, real q1, real q2, real q3)
 quaternion (const matrix4 &m)
 quaternion (const vec3 &axis, real radians)
 quaternion (const vec3 &rotateFrom, const vec3 &rotateTo)
 quaternion (const vec3 &from_look, const vec3 &from_up, const vec3 &to_look, const vec3 &to_up)
void scale_angle (real scaleFactor)
quaternionset_value (real q0, real q1, real q2, real q3)
quaternionset_value (const real *qp)
quaternionset_value (const matrix4 &m)
quaternionset_value (const vec3 &axis, real theta)
quaternionset_value (const vec3 &rotateFrom, const vec3 &rotateTo)
quaternionset_value (const vec3 &from_look, const vec3 &from_up, const vec3 &to_look, const vec3 &to_up)

Static Public Member Functions

static quaternion identity ()
static quaternion slerp (const quaternion &p, const quaternion &q, real alpha)

Protected Member Functions

void counter_normalize ()

Protected Attributes

union {
   struct {
      real   q [4]
   } 
   struct {
      real   w
      real   x
      real   y
      real   z
   } 
}; 
unsigned char counter

Friends

bool operator!= (const quaternion &q1, const quaternion &q2)
quaternion operator* (const quaternion &q1, const quaternion &q2)
bool operator== (const quaternion &q1, const quaternion &q2)

Detailed Description

Definition at line 1009 of file glh_linear.h.


Constructor & Destructor Documentation

Definition at line 1013 of file glh_linear.h.

Definition at line 1018 of file glh_linear.h.

glh::GLH_REAL_NAMESPACE::quaternion::quaternion ( real  q0,
real  q1,
real  q2,
real  q3 
) [inline]

Definition at line 1024 of file glh_linear.h.

Definition at line 1030 of file glh_linear.h.

glh::GLH_REAL_NAMESPACE::quaternion::quaternion ( const vec3 axis,
real  radians 
) [inline]

Definition at line 1036 of file glh_linear.h.

glh::GLH_REAL_NAMESPACE::quaternion::quaternion ( const vec3 rotateFrom,
const vec3 rotateTo 
) [inline]

Definition at line 1042 of file glh_linear.h.

glh::GLH_REAL_NAMESPACE::quaternion::quaternion ( const vec3 from_look,
const vec3 from_up,
const vec3 to_look,
const vec3 to_up 
) [inline]

Definition at line 1047 of file glh_linear.h.


Member Function Documentation

Definition at line 1312 of file glh_linear.h.

Definition at line 1414 of file glh_linear.h.

bool glh::GLH_REAL_NAMESPACE::quaternion::equals ( const quaternion r,
real  tolerance 
) const [inline]

Definition at line 1298 of file glh_linear.h.

Definition at line 1053 of file glh_linear.h.

void glh::GLH_REAL_NAMESPACE::quaternion::get_value ( real q0,
real q1,
real q2,
real q3 
) const [inline]

Definition at line 1058 of file glh_linear.h.

void glh::GLH_REAL_NAMESPACE::quaternion::get_value ( vec3 axis,
real radians 
) const [inline]

Definition at line 1076 of file glh_linear.h.

Definition at line 1090 of file glh_linear.h.

Definition at line 1394 of file glh_linear.h.

Definition at line 1325 of file glh_linear.h.

Definition at line 1320 of file glh_linear.h.

void glh::GLH_REAL_NAMESPACE::quaternion::mult_vec ( const vec3 src,
vec3 dst 
) const [inline]

Definition at line 1335 of file glh_linear.h.

void glh::GLH_REAL_NAMESPACE::quaternion::mult_vec ( vec3 src_and_dst) const [inline]

Definition at line 1346 of file glh_linear.h.

Definition at line 1280 of file glh_linear.h.

quaternion& glh::GLH_REAL_NAMESPACE::quaternion::operator*= ( const quaternion qr) [inline]

Definition at line 1265 of file glh_linear.h.

real& glh::GLH_REAL_NAMESPACE::quaternion::operator[] ( int  i) [inline]

Definition at line 1400 of file glh_linear.h.

const real& glh::GLH_REAL_NAMESPACE::quaternion::operator[] ( int  i) const [inline]

Definition at line 1406 of file glh_linear.h.

Definition at line 1351 of file glh_linear.h.

Definition at line 1066 of file glh_linear.h.

Definition at line 1130 of file glh_linear.h.

Definition at line 1138 of file glh_linear.h.

quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value ( const vec3 axis,
real  theta 
) [inline]

Definition at line 1182 of file glh_linear.h.

quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value ( const vec3 rotateFrom,
const vec3 rotateTo 
) [inline]

Definition at line 1207 of file glh_linear.h.

quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value ( const vec3 from_look,
const vec3 from_up,
const vec3 to_look,
const vec3 to_up 
) [inline]

Definition at line 1250 of file glh_linear.h.

static quaternion glh::GLH_REAL_NAMESPACE::quaternion::slerp ( const quaternion p,
const quaternion q,
real  alpha 
) [inline, static]

Definition at line 1361 of file glh_linear.h.


Friends And Related Function Documentation

bool operator!= ( const quaternion q1,
const quaternion q2 
) [friend]

Definition at line 1449 of file glh_linear.h.

quaternion operator* ( const quaternion q1,
const quaternion q2 
) [friend]

Definition at line 1455 of file glh_linear.h.

bool operator== ( const quaternion q1,
const quaternion q2 
) [friend]

Definition at line 1440 of file glh_linear.h.


Member Data Documentation

union { ... } [protected]

Definition at line 1436 of file glh_linear.h.

Definition at line 1424 of file glh_linear.h.

Definition at line 1431 of file glh_linear.h.

Definition at line 1428 of file glh_linear.h.

Definition at line 1429 of file glh_linear.h.

Definition at line 1430 of file glh_linear.h.


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


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:52