public GraphicPic angleList() { var graphicPic = new GraphicPic(); foreach (var e in segments) { if ((e.X2 - e.X1) == (e.Y2 - e.Y1) || (e.X2 - e.X1) / 2 == (e.Y2 - e.Y1)) { graphicPic.segments.Add(e); } } return(graphicPic); }
public GraphicPic lengthList(int a, int b) { var graphicPic = new GraphicPic(); foreach (var e in segments) { if (e.Length <= (b - a)) { graphicPic.segments.Add(e); } } return(graphicPic); }