The midpoint of a segment \(\overline{AB}\) is defined as the point \(M\) belonging to the segment itself and which measures the same distance from its ends \(A\) and \(B\). In general, in the plane, given two points \(A(x_A,y_A)\) and \(B(x_B,y_B)\), the midpoint between them is calculated with the following formulas, which provide the respective coordinates of point \(M(x_M,y_M)\):