52 v =
b2Clamp(v, lowerBound, upperBound);
void DrawPoint(const b2Vec2 &p, float size, const b2Color &color) override
Draw a point.
float RandomFloat()
Random number in range [-1,1].
void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon provided in CCW order.
Color for debug drawing. Each value has the range [0,1].
b2Vec2 m_points[b2_maxPolygonVertices]
void Keyboard(int key) override
b2Vec2 m_vertices[b2_maxPolygonVertices]
T b2Clamp(T a, T low, T high)
void Set(const b2Vec2 *points, int32 count)
void Step(Settings &settings) override
int RegisterTest(const char *category, const char *name, TestCreateFcn *fcn)
#define b2_maxPolygonVertices
void DrawString(int x, int y, const char *string,...)
virtual void Step(Settings &settings)