public void ClosePolygon() { VectorLineSegment line = new VectorLineSegment(); line.Start = new PointF(curX, curY); line.End = new PointF(startX, startY); curX = startX; curY = startY; segments.Add(line); }
public void LineTo(float x, float y) { VectorLineSegment line = new VectorLineSegment(); line.Start = new PointF(curX, curY); line.End = new PointF(x, y); curX = x; curY = y; AddSegment(line); }