globalToLocal

Converts the global point p (using root/stage as reference) into the local coordinate system. Allows to define out to avoid allocation.