00001
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
00019 void CopyFrom( Matrice44& m );
00020
00021
00022 void multiplyByMatrix ( Matrice44& m );
00023
00024
00025 void setIdentity();
00026
00027
00028 void setNull ();
00029
00030
00031 void setTranslateX( realtype x );
00032
00033
00034 void setTranslateY( realtype y );
00035
00036
00037 void setTranslateZ( realtype z );
00038
00039
00040 void setRotateX( realtype cos, realtype sin );
00041
00042
00043 void setRotateY( realtype cos, realtype sin );
00044
00045
00046 void setRotateZ( realtype cos, realtype sin );
00047
00048
00049 void setScaleX( realtype s);
00050
00051
00052 void setScaleY( realtype s);
00053
00054
00055 void setScaleZ( realtype s);
00056
00057
00058 BOOL isIdentity();
00059 };
00060
00061 #endif