Add functions to compute relative coordinates