The generalized distance between two points. In a plane with point p1 at (x1, y1) and p2 at (x2, y2), it is (