Vec2f Node2D::screenToParent( const Vec2f &pt ) const { Vec2f p = pt; Node2DRef node = getParent<Node2D>(); if(node) p = node->screenToObject(p); return p; }
vec2 Node2D::screenToParent( const vec2 &pt ) const { vec2 p = pt; Node2DRef node = getParent<Node2D>(); if( node ) p = node->screenToObject( p ); return p; }