The midpoint is calculated by averaging the coordinates of its endpoints:
Now we can use the usual distance formula to get the length of SM:
9.4m questions
12.1m answers