Пример #1
0
                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)));
                    }
                }
Пример #2
0
 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);
 }