Distance between points in first quadrant