Rewrote Makefile, LivingMapObject
[sdlbotor.git] / globalfunc.h
blobd50bdb5b37cec2cf8853c368578635ee0efb7c09
1 #ifndef GLOBALFUNC_H
2 #define GLOBALFUNC_H
4 namespace botor
6 template<typename T> inline int sign( T a )
8 return (a == 0) ? 0 : ( (a<0) ? -1 : 1 );
11 double dst( float x1, float y1, float x2, float y2 );
13 bool isBitSet( unsigned int mask, unsigned int bit );
16 #endif