Below is demonstrated a method of finding the midpoint of a line segment.