renamed patial to delta in TwoDCoordinate distance function