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

vpmatrix.h

Go to the documentation of this file.
00001 //deprecated
00003 //
00004 //  PROJECT.....: vpat - Creating Virtual Patients
00005 //  RESPONSIBLE.: Carla Freitas e Luciana Nedel
00006 //
00007 //  FILE........: vpmatrix.h
00008 //  DESCRIPTION.: Contain the VPMatrix class declarations.
00009 //
00010 //  AUTHOR......: Anderson Maciel
00011 //  DATE........: 09/June/2000
00012 //  DESCRIPTION.: Class and new methods declaration.
00013 //
00015 
00016 #ifndef __VPMATRIX_H
00017 #define __VPMATRIX_H
00018 
00019 
00020 #include    <vppoint3d.h>
00021 
00022 //-----------------------------------------------------------------------
00023 // V P M A T R I X
00024 //-----------------------------------------------------------------------
00025 
00027 // Class Name: VPMatrix
00028 // Superclass: -
00029 // Subclass: -
00030 // Describes a 4x4 homogeneous matrix for most CG transformations
00031 
00032 typedef float mat44 [4][4];
00034 
00035 class VPMatrix{
00036 
00037 
00038     private:
00039         float   data[4][4];
00040 
00041     protected:
00042         VPMatrix*   vpGetAdjoint( void );
00043         float       vpGetDet33( float, float, float, float, float, float, float, float, float );
00044         float       vpGetDet22( float, float, float, float );
00045 
00046     public:
00047         VPMatrix();
00048         VPMatrix( float[] );
00049         VPMatrix( float[][4] );
00050         ~VPMatrix();
00051 
00052         float       vpGetValueAt( int, int );
00053         void        vpSetValueAt( int, int, float );
00054         //mat44*        vpGetMatrixF( void );
00055         void        vpGetMatrixF( float ** );
00056         float*  vpGetMatrixVF( void );
00057 
00058         VPMatrix*   vpGetInverse( void );
00059         float       vpGetDeterminent( void );
00060 
00061         VPMatrix*   vpMultiplyScalar( float );
00062         VPMatrix*   vpMultiply( VPMatrix );
00063         VPMatrix*   vpSubtract( VPMatrix );
00064         VPMatrix*   vpAdd( VPMatrix );
00065         VPPoint3D*  vpMultiply ( VPPoint3D );
00066 
00067 };
00068 
00069 #endif

Generated on Tue Sep 6 10:00:04 2005 for VPAT by  doxygen 1.4.4