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

Method convertToWindowSpace

core/2d/Node.cpp:1921–1925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1919}
1920
1921Vec2 Node::convertToWindowSpace(const Vec2& nodePoint) const
1922{
1923 Vec2 worldPoint(this->convertToWorldSpace(nodePoint));
1924 return _director->convertToUI(worldPoint);
1925}
1926
1927// convenience methods which take a Touch instead of Vec2
1928Vec2 Node::convertTouchToNodeSpace(Touch* touch) const

Callers

nothing calls this directly

Calls 2

convertToWorldSpaceMethod · 0.95
convertToUIMethod · 0.80

Tested by

no test coverage detected