19 #ifndef B2_COLLISION_H
20 #define B2_COLLISION_H
22 #include <Box2D/Common/b2Math.h>
34 const uint8 b2_nullFeature = UCHAR_MAX;
38 struct b2ContactFeature
184 return 2.0f * (wx + wy);
224 void b2CollidePolygonAndCircle(
b2Manifold* manifold,
234 void b2CollideEdgeAndCircle(
b2Manifold* manifold,
239 void b2CollideEdgeAndPolygon(
b2Manifold* manifold,
245 const b2Vec2& normal, float32 offset, int32 vertexIndexA);
249 const b2Shape* shapeB, int32 indexB,
257 bool valid = d.x >= 0.0f && d.y >= 0.0f;
268 if (d1.x > 0.0f || d1.y > 0.0f)
271 if (d2.x > 0.0f || d2.y > 0.0f)