3-D geometry : three vertices of a ||gm ABCD is (3,-1,2), (1,2,-4) & (-1,1,2). Find the coordinate of the fourth vertex. The question is

Three vertices of a parallelogram ABCD are A(3,-1,2), B(1,2,-4) and C(-1,1,2). Find the coordinate of the fourth vertex.

To get the answer I tried the distance formula, equated AB=CD and AC=BD.

If you have a parallelogram ABCD, then you know the vectors $\vec{AB}$ and $\vec{DC}$ need to be equal as they are parallel and have the same length. Since we know that $\vec{AB}=(-2,\,3,-6)$ you can easily calculate $D$ since you (now) know $C$ and $\vec{CD}(=-\vec{AB})$. We get for $\vec{0D}=\vec{0C}+\vec{CD}=(-1,\,1,\,2)+(\,2,-3,\,6)=(\,1,-2,\,8)$ and hence $D(\,1,-2,\,8)$.
