Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

quat.C File Reference

Contains the implementation of the non-inline functions of the Quat class.

This code comes in part from Ken Shoemake's article on quaternions (available at ftp://ftp.cis.upenn.edu/pub/graphics/shoemake/quatut.ps.Z). More...

#include "mlib/quat.H"

Include dependency graph for quat.C:

Go to the source code of this file.

Defines

#define caseMacro(i, j, k, I, J, K)


Detailed Description

Contains the implementation of the non-inline functions of the Quat class.

This code comes in part from Ken Shoemake's article on quaternions (available at ftp://ftp.cis.upenn.edu/pub/graphics/shoemake/quatut.ps.Z).

Definition in file quat.C.


Define Documentation

#define caseMacro i,
j,
k,
I,
J,
 ) 
 

Value:

case I:\
             s = sqrt( (t(I,I) - (t(J,J)+t(K,K))) + t(3,3) );\
                _v[i] = s*0.5;\
                s = 0.5 / s;\
                _v[j] = (t(I,J) + t(J,I)) * s;\
                _v[k] = (t(K,I) + t(I,K)) * s;\
                _v[3] = (t(K,J) + t(J,K)) * s;\
                break

Referenced by mlib::Quat< QUAT, M, P, V, L >::Quat().


Generated on Mon Sep 18 11:42:51 2006 for jot by  doxygen 1.4.4