Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Beta/3D/Matrice44.hpp

Go to the documentation of this file.
00001 // Matrices de transformation 3D
00002 
00003 #ifndef __J2K__Matrice44_HPP__
00004 #define __J2K__Matrice44_HPP__
00005 
00006 #include "3dtype.h"
00007 
00008 class Matrice44
00009  {
00010     public:
00011     realtype xx, xy, xz, xw,
00012              yx, yy, yz, yw,
00013              zx, zy, zz, zw,
00014              wx, wy, wz, ww;
00015 
00016     Matrice44() { setIdentity(); }
00017 
00018     // Initialisation de la matrice depuis une autre matrice.
00019     void CopyFrom( Matrice44& m );
00020 
00021     // Multiplication de la matrice par une autre matrice 44.
00022     void multiplyByMatrix ( Matrice44& m );
00023 
00024     //Initialisation de la matrice identitée.
00025     void setIdentity();
00026 
00027     // Initialisation de la matrice nulle.
00028     void setNull ();
00029 
00030     // Initialisation de la matrice de translation X.
00031     void setTranslateX( realtype x );
00032 
00033     // Initialisation de la matrice de translation Y.
00034     void setTranslateY( realtype y );
00035 
00036     // Initialisation de la matrice de translation Z.
00037     void setTranslateZ( realtype z );
00038 
00039     // Initialisation de la matrice de rotation x.
00040     void setRotateX( realtype cos, realtype sin );
00041 
00042     // Initialisation de la matrice de rotation y.
00043     void setRotateY( realtype cos, realtype sin );
00044 
00045     // Initialisation de la matrice de rotation Z.
00046     void setRotateZ( realtype cos, realtype sin );
00047 
00048     // Initialisation de la matrice de changement d'echelle X.
00049     void setScaleX( realtype s);
00050 
00051     // Initialisation de la matrice de changement d'echelle Y.
00052     void setScaleY( realtype s);
00053 
00054     // Initialisation de la matrice de changement d'echelle Z.
00055     void setScaleZ( realtype s);
00056 
00057     // La matrice est elle la matrice identitée ?
00058     BOOL isIdentity();
00059  };
00060 
00061 #endif 

Generated on Sun Oct 14 18:46:07 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001