To carry on the example. How to find the distance between two points on a graph. So just use the positive distance between two points.
Consider the function f t P t Q - P Note that f 0 P and f 1 Q.
When you know the coordinates of the two points that you are trying to find the distance between just substitute into the distance equation. It can also be seen that Dx and Dy are line segments that form a right triangle with hypotenuse d with d being the distance between the points x1 y1 and x2 y2. In the equation above y2 - y1 Dy or vertical change while x2 - x1 Dx or horizontal change as shown in the graph provided. In a 3 dimensional plane the distance between points X 1 Y 1 Z 1 and X 2 Y 2 Z 2 is given by.