Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Quat Class Reference

Quaternió per representar orientacions en 3D. More...

#include <Quat.h>

List of all members.

Public Member Functions

 Quat ()
 Quat (const Real v[4])
 Quat (Real x, Real y, Real z, Real w)
void Init (const Real *v)
void CreateFromMatrix (const float *matrix, int n_cols)
void ToArray (Real *v) const
void ToM3D (M3D *m) const
 Quat (const V3D &axis, Real angle)
 Quat (Real yaw, Real pitch, Real roll)
void setRotation (const V3D &axis, Real angle)
void setEuler (Real yaw, Real pitch, Real roll)
void setValue (Real x, Real y, Real z, Real w)
const Realoperator[] (int i) const
Quatoperator+= (const Quat &q)
Quatoperator-= (const Quat &q)
Quatoperator *= (const Quat &q)
Quatoperator *= (Real s)
Quatoperator/= (Real s)
Real length2 () const
Real length () const
bool approxQUAT_Zero () const
void normalize ()
Quat normalized () const
void conjugate ()
Quat conjugate () const
void invert ()
Quat inverse () const
Quat Slerp (const Quat &q1, const Quat &q2, float t)
Real getAngle () const
V3D getAxis () const

Private Attributes

Real vec [4]


Detailed Description

Quaternió per representar orientacions en 3D.

Classe Quaternió robada de SOLID i extesa amb noves operacions.


Constructor & Destructor Documentation

Quat::Quat  )  [inline]
 

Quat::Quat const Real  v[4]  )  [inline]
 

Quat::Quat Real  x,
Real  y,
Real  z,
Real  w
[inline]
 

Quat::Quat const V3D axis,
Real  angle
[inline]
 

Quat::Quat Real  yaw,
Real  pitch,
Real  roll
[inline]
 


Member Function Documentation

bool Quat::approxQUAT_Zero  )  const [inline]
 

Quat Quat::conjugate  )  const [inline]
 

void Quat::conjugate  )  [inline]
 

void Quat::CreateFromMatrix const float *  matrix,
int  n_cols
 

Real Quat::getAngle  )  const [inline]
 

Retorna l'angle de rotació al voltant de l'eix => (axis,ANGLE)

V3D Quat::getAxis  )  const [inline]
 

Retorna l'eix de rotació => (AXIS,angle)

void Quat::Init const Real v  )  [inline]
 

Quat Quat::inverse  )  const [inline]
 

void Quat::invert  )  [inline]
 

Real Quat::length  )  const [inline]
 

Real Quat::length2  )  const [inline]
 

void Quat::normalize  )  [inline]
 

Quat Quat::normalized  )  const [inline]
 

Quat & Quat::operator *= Real  s  )  [inline]
 

Quat & Quat::operator *= const Quat q  )  [inline]
 

Quat & Quat::operator+= const Quat q  )  [inline]
 

Quat & Quat::operator-= const Quat q  )  [inline]
 

Quat & Quat::operator/= Real  s  )  [inline]
 

const Real& Quat::operator[] int  i  )  const [inline]
 

void Quat::setEuler Real  yaw,
Real  pitch,
Real  roll
[inline]
 

void Quat::setRotation const V3D axis,
Real  angle
[inline]
 

void Quat::setValue Real  x,
Real  y,
Real  z,
Real  w
[inline]
 

Quat Quat::Slerp const Quat q1,
const Quat q2,
float  t
 

void Quat::ToArray Real v  )  const [inline]
 

void Quat::ToM3D M3D m  )  const [inline]
 


Member Data Documentation

Real Quat::vec[4] [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Aug 10 15:58:31 2004 for Saphyre2 by doxygen 1.3.5