use Vector2.average for computing the center of a bond