Same local coordinate tranform function used in both visualisation and browser.