public void Generate(int pointCount, ParametricEquations eq, float a = 1, float b = 0, float c = 0) { points.Clear(); var step = MathHelper.TwoPi / pointCount; for (var t = 0f; t < MathHelper.TwoPi; t += step) { points.Add(new Vector2((float)eq.X(a, b, c, t), (float)eq.Y(a, b, c, t))); } }
public Path(int pointCount, ParametricEquations eq, PathTransform p, float a = 1, float b = 0, float c = 0) { Generate(pointCount, eq, a, b, c); Transform(p); }