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

Method containsPoint

core/physics/PhysicsShape.cpp:965–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965bool PhysicsShape::containsPoint(const Vec2& point) const
966{
967 for (auto&& shape : _cpShapes)
968 {
969 if (cpShapePointQuery(shape, PhysicsHelper::vec22cpv(point), nullptr) < 0)
970 {
971 return true;
972 }
973 }
974
975 return false;
976}
977
978}
979

Callers 15

getSquareValueMethod · 0.45
hitTestMethod · 0.45
isScreenPointInRectFunction · 0.45
checkVisibilityMethod · 0.45
onGLFWMouseCallBackMethod · 0.45
createControlsMethod · 0.45
onTouchBeganMethod · 0.45
_containsTouchPointFunction · 0.45
engine_inj_containsPointFunction · 0.45
onTouchEndedMethod · 0.45
initMethod · 0.45
onTouchesBeganMethod · 0.45

Calls 1

cpShapePointQueryFunction · 0.85

Tested by 13

onTouchEndedMethod · 0.36
initMethod · 0.36
onTouchesBeganMethod · 0.36
MeshRendererHitTestMethod · 0.36
onEnterMethod · 0.36
initMethod · 0.36
GlobalZTouchTestMethod · 0.36
isPointInNodeMethod · 0.36
sliceMethod · 0.36
onTouchesCommonMethod · 0.36
onTouchesBeganMethod · 0.36