Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Math.h

Go to the documentation of this file.
00001 
00007 #ifndef _MATH_H_
00008 #define _MATH_H_
00009 
00010 #include <Math.h>
00011 
00012 #define PI 3.1415926535897932384626433832795f
00013 #define TWOPI 6.28318530717958f
00014 #define PIDIV2 1.57079632679489f
00015 #define PIdiv180 (PI/180.0f)
00016 
00017 #define round(x) (x<0?ceil((x)-0.5):floor((x)+0.5))
00018 
00019 #define GRAVITY Vec3(0.0f, -9.82f, 0.0f)
00020 
00021 //float round(const float &number, const int num_digits);
00022 
00023 #define RANDOM_NUM      (((float)rand()-(float)rand())/RAND_MAX)
00024 #define Clamp(x, min, max) x=(x<min ? min : (x<max? x : max));
00025 
00026 #endif

Generated on Sun Jun 5 15:47:04 2005 for Defacto by  doxygen 1.4.3