public static ISVGElement CreateCircle(Vector2 aAt, float aRadius) { float d = Mathf.Sqrt(aRadius * aRadius) * 1.2f; SVGPath path = new SVGPath(true); path.Add(aAt + Vector2.left * aRadius, SVGPath.PointType.Free, new Vector2(0, -d), new Vector2(0, d)); path.Add(aAt + Vector2.right * aRadius, SVGPath.PointType.Free, new Vector2(0, d), new Vector2(0, -d)); return(path); }
public ISVGElement Reverse() { SVGPath result = new SVGPath(_closed); result._points = new List <Point>(_points); result._points.Reverse(); for (int i = 0; i < result._points.Count; i++) { Vector2 c = result._points[i].controlNext; result._points[i].controlNext = result._points[i].controlPrev; result._points[i].controlPrev = c; } return(result); }