C:/Users/Mike/Documents/Visual Studio Projects/GameEngine/include/GameUtils.h

Go to the documentation of this file.
00001 #ifndef GAME_UTILS_H
00002 #define GAME_UTILS_H
00003 
00004 #include "GameEnginePrerequisites.h"
00005 #include "Vector3.h"
00006 
00007 namespace GameEngine {
00008 
00009         const Real M_PI = (Real) 3.14159265358979323846;
00010 
00011 
00012         // Convert angles in degrees to radians
00013         inline Real DegToRad( Real degs ) {
00014                         return degs * (M_PI / (Real) 180.0);
00015         }
00016 
00017         // Convert angles in radians to degrees
00018         inline Real RadToDeg( Real rads ) {
00019                         return rads * ( (Real) 180.0 / M_PI);
00020         }
00021 
00022 
00023         class ENGINE_DECL GameUtils {
00024         public:
00025 
00026                 static std::string generateUniqueName(std::string name);
00027 
00028         private:
00029                 static int mUniqueIdCount;
00030 
00031         };
00032 
00033 }
00034 
00035 
00036 #endif

Generated on Thu Apr 19 09:47:02 2007 for GameEngine by  doxygen 1.5.2