public void setDown(int ind) { this.coupleDown = new CouplePtSort(this.myFigure[ind], this.myFigure[getIndNext(false, ind)]); if (this.coupleDown.max().X == this.coupleDown.min().X) { this.setUp(this.getIndNext(false, ind)); } }
public void setUp(int ind) { this.coupleUp = new CouplePtSort(this.myFigure[ind], this.myFigure[getIndNext(true, ind)]); if (this.coupleUp.max().X == this.coupleUp.min().X) { this.setUp(this.getIndNext(true, ind)); } }