Removed O.* files for old object descriptors
[sdlbotor.git] / globalfunc.cpp
blobc0b78969b44382fd38b67c810441526fc816c6e1
1 #include <cmath>
2 #include "globalfunc.h"
4 namespace botor
7 double dst( float x1, float y1, float x2, float y2 )
9 return sqrt( pow( y2-y1, 2 ) + pow( x2-x1, 2 ) );
12 bool isBitSet( unsigned int mask, unsigned int bit )
14 return (mask & bit) == bit;