public List <LittleShape2> draw() { List <LittleShape2> f = new List <LittleShape2>(); List <Point> p = new List <Point>(); int c = 1; p.Add(new Point()); foreach (var item in temp) { Point pr = new Point(item.X * c, item.Y * c); p.Add(pr); shiftList(ref p, pr); } // shiftList(ref p, new Point(0, 0)); List <Point> lp = new List <Point>(); LittleShape2 ls = new LittleShape2(); ls.setPoint(p.ToArray()); f.Add(ls); return(f); }
public List <LittleShape2> draw2() { List <LittleShape2> f = new List <LittleShape2>(); int ccc = 0; foreach (var item in mainLL) { if (ccc++ == 1000) { return(f); } List <Point> p = new List <Point>(); int c = 1; p.Add(new Point()); foreach (var i in item) { Point pr = new Point(i.X * c, i.Y * c); p.Add(pr); shiftList(ref p, pr); // shiftList(ref p, new Point(0, 0)); List <Point> lp = new List <Point>(); LittleShape2 ls = new LittleShape2(); ls.setPoint(p.ToArray()); f.Add(ls); } } //foreach (var item in temp) //{ //} return(f); }