#include <Box2D/Common/b2Math.h>

Go to the source code of this file.
| Classes | |
| struct | b2DistanceInput | 
| struct | b2DistanceOutput | 
| Output for b2Distance.  More... | |
| struct | b2DistanceProxy | 
| struct | b2SimplexCache | 
| Functions | |
| void | b2Distance (b2DistanceOutput *output, b2SimplexCache *cache, const b2DistanceInput *input) | 
| void b2Distance | ( | b2DistanceOutput * | output, | 
| b2SimplexCache * | cache, | ||
| const b2DistanceInput * | input | ||
| ) | 
Compute the closest points between two shapes. Supports any combination of: b2CircleShape, b2PolygonShape, b2EdgeShape. The simplex cache is input/output. On the first call set b2SimplexCache.count to zero.
Definition at line 444 of file b2Distance.cpp.