Documentation


global.h

Go to the documentation of this file.
00001 #ifndef _GLOBAL_H
00002 #define _GLOBAL_H
00003 
00004 #include "Vec3.h"
00005 #include <X3DTK/private/SFVec3f.h>
00006 #include <X3DTK/private/X3DBaseTypes.h>
00007 
00008 #include <animal/matrix.h>
00009 #include <animal/vectorVec.h>
00010 
00011 
00012 // /**
00013 //  * Declaration du type de floatant utilise
00014 //  */
00015 // typedef float FloatingPointType;
00016 // 
00017 // /**
00018 //  * Definition du type Vec3 avec le type floatant
00019 //  */
00020 // typedef animal::octree::Vec3<FloatingPointType> Vec3d;
00021 // 
00022 // 
00023 // /**
00024 //  * Pour la simiplicite d'utilisation
00025 //  */
00026 // using X3DTK::MFVec3f;
00027 // using X3DTK::SFVec3f;
00028 // 
00029 
00030 
00031 namespace animal
00032 {
00033     namespace octree
00034     {
00038 typedef float FloatingPointType;
00039 
00043 typedef Vec3<FloatingPointType> Vec3d;
00044 
00045 
00049 using X3DTK::MFVec3f;
00050 using X3DTK::SFVec3f;
00051 
00055         typedef animal::Matrix<FloatingPointType> HMat;
00056         
00060         typedef animal::VectorVec<FloatingPointType> HVec;
00061         
00065         Vec3d HVecToVec3d( const HVec v );
00066         HVec Vec3dToHVec( const Vec3d v );
00067 
00072         FloatingPointType *getMatrixInverse( unsigned short size, FloatingPointType *data );
00073         HMat getMatrixInverse( HMat A );
00074         
00075     }
00076 }
00077 
00078 #endif

Generated on Thu Dec 23 13:52:25 2004 by doxygen 1.3.6