Android app on Google Play

Lines and points

A line segment is a part of a line limited by a point in both ends.
The midpoint of the line segment between the two points A(x1, y1) and B(x2, y2) is given by:

(x_m,y_m)=(frac{x1+x2}{2},frac{y1+y2}{2})