Returns the distance between two three-element vectors.