Respuesta :

To calculate the distance d of a line segment with endpoints (x1, y1) and (x2, y2) use the formula d (x2 x1)2 (y2 y1)2. To calculate the midpoint of a line segment with endpoints (x1, y1) and (x2, y2) use the formula , .