1/2((a - b)^2 + (b - c)^2 + (c - a)^2)
= a^2 + b^2 + c^2 - ab - bc - ca