The general result is:
If \(\frac{A^2+B^2+C^2}{2}x =Aa+Bb+Cc\) then \((Ax-a)^2 + (Bx-b)^2 + (Cx-c)^2 = a^2+b^2+c^2\)
Alternatively, if \(\lambda = \frac{2\mathbf{x} \cdot \mathbf{y}}{\Vert x \Vert^2}\) then \(\Vert \lambda \mathbf{x} - \mathbf{y}\Vert^2 = \Vert \mathbf{y} \Vert^2\) which is easy to see is true.