Esempio n. 1
0
            public YNShape Clone()
            {
                YNShape shape = new YNShape();

                shape.ptsSize = ptsSize;
                pts.CopyTo(shape.pts, 0);
                return(shape);
            }
Esempio n. 2
0
 public void CopyTo(YNShape shape)
 {
     if (shape.pts.Count() < pts.Count())
     {
         shape.pts = new YNPoint2f[pts.Count()];
     }
     shape.ptsSize = ptsSize;
     pts.CopyTo(shape.pts, 0);
 }