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

Method hitTest

core/2d/Node.cpp:659–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659bool Node::hitTest(const Vec2& worldPoint) const
660{
661 auto p = this->convertToNodeSpace(worldPoint);
662 auto& s = this->getContentSize();
663 return Rect{0.f, 0.f, s.width, s.height}.containsPoint(p);
664}
665
666// isRunning getter
667bool Node::isRunning() const

Callers

nothing calls this directly

Calls 3

convertToNodeSpaceMethod · 0.95
getContentSizeMethod · 0.45
containsPointMethod · 0.45

Tested by

no test coverage detected