_Euler4.cc File Reference

#include <vecmath/_Euler4.h>
#include <iostream>

Go to the source code of this file.

Defines

#define SET_BY_MATRIX(m)
#define COMMON_CODE
#define GET_BY_MATRIX(m)
#define CLEAN_MATRIX4(m)

Functions

template<class Type>
std::ostream & operator<< (std::ostream &os, const _Euler4< Type > *t)
template<class Type>
std::ostream & operator<< (std::ostream &os, const _Euler4< Type > &t)
template std::ostream & operator<< (std::ostream &, const _Euler4< double > &)
template std::ostream & operator<< (std::ostream &, const _Euler4< double > *)
template std::ostream & operator<< (std::ostream &, const _Euler4< float > &)
template std::ostream & operator<< (std::ostream &, const _Euler4< float > *)

Variables

static const char * eulerDsc []


Define Documentation

#define CLEAN_MATRIX4  ) 
 

Value:

do {\
    m(W,X) = m(W,Y) = m(W,Z) = m(X,W) = m(Y,W) = m(Z,W) = 0.0;\
    m(W,W) = 1.0;\
    } while(0)

Definition at line 111 of file _Euler4.cc.

Referenced by _Euler4< Type >::get().

#define COMMON_CODE
 

Value:

int i, j, k, h, n, s, f;\
    EulGetOrd(order,i,j,k,h,n,s,f);\
    double ti = x;\
    double tj = y;\
    double th = z;\
    if (f == EulFrmR)\
        Math::swap(ti, th);\
    if (n == EulParOdd) {\
        ti = -ti; tj = -tj; th = -th;\
    }\
    double ci, cj, ch, si, sj, sh, cc, cs, sc, ss;

Definition at line 80 of file _Euler4.cc.

Referenced by _Euler4< Type >::get().

#define GET_BY_MATRIX  ) 
 

Value:

do {\
    COMMON_CODE\
    ci = cos(ti); cj = cos(tj); ch = cos(th);\
    si = sin(ti); sj = sin(tj); sh = sin(th);\
    cc = ci * ch; cs = ci * sh; sc = si * ch; ss = si * sh;\
    if (s==EulRepYes) {\
        m(i,i) =  cj;      m(i,j) =  sj * si;      m(i,k) =  sj * ci;\
        m(j,i) =  sj * sh; m(j,j) = -cj * ss + cc; m(j,k) = -cj * cs - sc;\
        m(k,i) = -sj * ch; m(k,j) =  cj * sc + cs; m(k,k) =  cj * cc - ss;\
    } else {\
        m(i,i) =  cj * ch; m(i,j) = sj *sc - cs;   m(i,k) = sj * cc + ss;\
        m(j,i) =  cj * sh; m(j,j) = sj *ss + cc;   m(j,k) = sj * cs - sc;\
        m(k,i) = -sj;      m(k,j) = cj *si;        m(k,k) = cj * ci;\
    }\
    } while(0)

Definition at line 94 of file _Euler4.cc.

Referenced by _Euler4< Type >::get().

#define SET_BY_MATRIX  ) 
 

Definition at line 46 of file _Euler4.cc.

Referenced by _Euler4< Type >::set().


Function Documentation

template std::ostream& operator<< std::ostream &  ,
const _Euler4< float > * 
 

template std::ostream& operator<< std::ostream &  ,
const _Euler4< float > & 
 

template std::ostream& operator<< std::ostream &  ,
const _Euler4< double > * 
 

template std::ostream& operator<< std::ostream &  ,
const _Euler4< double > & 
 

template<class Type>
std::ostream& operator<< std::ostream &  os,
const _Euler4< Type > &  t
 

Definition at line 202 of file _Euler4.cc.

References eulerDsc.

template<class Type>
std::ostream& operator<< std::ostream &  os,
const _Euler4< Type > *  t
 

Definition at line 197 of file _Euler4.cc.


Variable Documentation

const char* eulerDsc[] [static]
 

Definition at line 5 of file _Euler4.cc.

Referenced by operator<<().


Generated on Thu Sep 29 13:39:45 2005 for vecmath by  doxygen 1.4.4