The x-coordinate of the midpoint M of the segment is the arithmetic mean of the x-coordinates of the endpoints of the segment . Similarly, the y-coordinate of the midpoint M of the segment is the arithmetic mean of the y-coordinates of the endpoints of the segment .