MCPcopy Create free account
hub / github.com/SpartanJ/eepp / nodeToWorld

Method nodeToWorld

src/eepp/ui/uinode.cpp:1403–1407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401}
1402
1403void UINode::nodeToWorld( Vector2i& pos ) const {
1404 Vector2f toPos( convertToWorldSpace( Vector2f( pos.x * PixelDensity::getPixelDensity(),
1405 pos.y * PixelDensity::getPixelDensity() ) ) );
1406 pos = Vector2i( toPos.x, toPos.y );
1407}
1408
1409void UINode::worldToNode( Vector2f& pos ) const {
1410 Vector2f toPos( convertToNodeSpace( pos ) );

Callers 3

alignPopUpMethod · 0.45
NewModalMethod · 0.45
onShowMenuMethod · 0.45

Calls

no outgoing calls

Tested by 1

onShowMenuMethod · 0.36