vector equality is based on squared distance.