public void DrawMovingCutter(Point cur, bool isVertHor) { PbCanvas.Refresh(); if (isVertHor) { cur = ManagerMath.GetPointHorVertLine(cur, Cutter.Points.Last()); } gMove.DrawLine(Cutter.Pen, cur, Cutter.Points.Last()); }
public void InputCutter(Point cur, bool isVertHor) { IsInputPolygon = false; if (isVertHor && Cutter.Points.Count() > 0) { cur = ManagerMath.GetPointHorVertLine(cur, Cutter.Points.Last()); } if (IsInputCutter) { g.DrawLine(Cutter.Pen, cur, Cutter.Points.Last()); } else { ClearCutter(); } Cutter.Points.Add(cur); IsInputCutter = true; }
public void SetHorVertLine(Point cur) { B = ManagerMath.GetPointHorVertLine(cur, A); }