Added conversion functions for different coordinate representations.