| 1401 | } |
| 1402 | |
| 1403 | void 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 | |
| 1409 | void UINode::worldToNode( Vector2f& pos ) const { |
| 1410 | Vector2f toPos( convertToNodeSpace( pos ) ); |
no outgoing calls