哪位知道如何根据公式绘制一条曲线啊?就比如抛物线……
------解决方案--------------------
public class Curve : Shape
{
public List<Point> Points;
public Curve(Color c)
: base(c)
{
Points = new List<Point>();
}
public void AddPoint(Point p)
{
Points.Add(p);
}
public override void Draw(Graphics g)
{
if (Points.Count >= 2)
g.DrawCurve(new Pen(clr), Points.ToArray());
}
}