Box2D: Box2D/Box2D/Collision/b2Distance.h File Reference

# Box2D/Box2D/Collision/b2Distance.h File Reference

`#include <Box2D/Common/b2Math.h>`
`#include <climits>`

Go to the source code of this file.

## Classes

struct | b2DistanceProxy
struct | b2SimplexCache
struct | b2DistanceInput
struct | b2DistanceOutput
| Output for b2Distance. More...

## Functions

void | b2Distance (b2DistanceOutput *output, b2SimplexCache *cache, const b2DistanceInput *input)

## Function Documentation

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.