add getGlobal() to both 2D and 3D