Added tranform methods to go from window to global coordinates