Using function from tranform flow for local to global coordinate system.