Let m be the difference of x-coordinates and n, that of y-ones.
Now, we have two ways to find the other endpoint, since these differences are the same to those between the missing endpoint's coordinates and the midpoint's ones, and twice m and n are the differences between the known endpoint and the one we're looking for.
So, solving this problem by the first way just cited: The other endpoint is: