Added a function to calculate the coordinates of a vertex, given a vertex ID.