MCPcopy Create free account
hub / github.com/axmolengine/axmol / cpShapePointQuery

Function cpShapePointQuery

3rdparty/chipmunk/src/cpShape.c:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222cpFloat
223cpShapePointQuery(const cpShape *shape, cpVect p, cpPointQueryInfo *info)
224{
225 cpPointQueryInfo blank = {NULL, cpvzero, INFINITY, cpvzero};
226 if(info){
227 (*info) = blank;
228 } else {
229 info = ␣
230 }
231
232 shape->klass->pointQuery(shape, p, info);
233 return info->distance;
234}
235
236
237cpBool

Callers 9

NearestPointQueryFunction · 0.85
NearestPointQueryNearestFunction · 0.85
cpShapeNearestPointQueryFunction · 0.85
containsPointMethod · 0.85
updateFunction · 0.85
ClipCellFunction · 0.85
ShatterCellFunction · 0.85
ShatterShapeFunction · 0.85
SliceQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected