ISVGPathDraw.cs 799 B

12345678910111213141516171819202122232425262728
  1. using UnityEngine;
  2. public interface ISVGPathDraw {
  3. void MoveTo(Vector2 p);
  4. void CircleTo(Vector2 p, float r);
  5. void EllipseTo(Vector2 p, float r1, float r2, float angle);
  6. void ArcTo(float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p);
  7. void CubicCurveTo(Vector2 p1, Vector2 p2, Vector2 p);
  8. void QuadraticCurveTo(Vector2 p1, Vector2 p);
  9. void LineTo(Vector2 p);
  10. void Rect(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4);
  11. void RoundedRect(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8,
  12. float r1, float r2, float angle);
  13. void Circle(Vector2 p, float r);
  14. void Ellipse(Vector2 p, float rx, float ry, float angle);
  15. void Polygon(Vector2[] points);
  16. }