public YNShape Clone() { YNShape shape = new YNShape(); shape.ptsSize = ptsSize; pts.CopyTo(shape.pts, 0); return(shape); }
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); }