5 #define DEGTORAD 0.0174532925199432957f
6 #define RADTODEG 57.295779513082320876f
7 #define PI 3.14159265359f
11 #include <Box2D/Box2D.h>
21 return (x < 0) ? -1 : 0;
30 inline float min(
float x,
float y)
32 return (x <= y) ? x : y;
41 inline float max(
float x,
float y)
43 return (x > y) ? x : y;
53 inline float clamp(
float x,
float minValue,
float maxValue)
55 return min(maxValue,
max(minValue, x));
66 void b2Vec2ToQPointF(b2Vec2* points,
size_t num_points, QPointF* result);
77 #endif // MATHUTILITY_H