private static void positionLineThreeDot(CFigure cFigure, LineNY lineNY, CFigure figure) { lineNY.PositionLineNachalo = cFigure.SoedineniePoint(cFigure.SoedineniePoint("top").X <= figure.SoedineniePoint("top").X ? "right" : "left"); lineNY.LineThreePoints(); }
private static void figurePosleRhombusBezPerenosa(LineNY lineNY, CFigure cfigure) { //329-центр по X if (cfigure.SoedineniePoint("top").X >= 329 && cfigure.VihodLineLeft == false || cfigure.SoedineniePoint("top").X <= 329 && cfigure.VihodLineRight == true) { figureLeveeRhombus(lineNY, cfigure); } else { figurePraveeRhombus(lineNY, cfigure); } lineNY.PositionLineKonec = newCFigure.SoedineniePoint("top"); lineNY.LineThreePoints(); lineNY.SposobOtrisovki = false; newCFigure.Perenos = true; newCFigure.SerediniStoronMethPoints(); }
private static void figurePosleRhombusBezPerenosa(LineNY lineNY, CFigure cfigure) { //329-центр по X if (cfigure.SoedineniePoint("top").X >= 329 && cfigure.VihodLineLeft == false || cfigure.SoedineniePoint("top").X <= 329 && cfigure.VihodLineRight == true) { figureLeveeRhombus(lineNY, cfigure); } else { figurePraveeRhombus(lineNY, cfigure); } lineNY.PositionLineKonec = newCFigure.SoedineniePoint("top"); lineNY.LineThreePoints(); lineNY.SposobOtrisovki = false; newCFigure.Perenos = true; newCFigure.SerediniStoronMethPoints(); }
private static void positionLineThreeDot(CFigure cFigure, LineNY lineNY, CFigure figure) { lineNY.PositionLineNachalo = cFigure.SoedineniePoint(cFigure.SoedineniePoint("top").X <= figure.SoedineniePoint("top").X ? "right" : "left"); lineNY.LineThreePoints(); }