public void SetB(NailScript to) { pointB = to; to.SetTiedLine(this, pointA); if (pointA != null) { pointA.UpdateConnection(this, pointB); } }