Distance between two points on the same coordinate axes