Midpoint
Midpoint[{p1,p2}] gives the midpoint of the line segment connecting the points p1 and p2.
Midpoint[Line[{p1,p2}]] gives the midpoint of a line.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.