What does midpoint formula do?

It finds the co-ordinates of the midpoint of a line segment, given the co-ordinates of the two endpoints.