Beispiel #1
0
        void lbFunction_SelectedIndexChanged(object sender, RoutedEventArgs e)
        {
            CircularFunction f;

            if ((string)lbFunction.SelectedItem == "Taubin's Heart")
            {
                f = CircularFunction.TaubinsHeart;
            }
            else if ((string)lbFunction.SelectedItem == "Cardioid")
            {
                f = CircularFunction.Cardioid;
            }
            else
            {
                f = CircularFunction.Lemniskate;
            }
            chart.DataSource = FunctionsPointGenerator.GeneratePoints(f);
            chart.Animate();
        }
Beispiel #2
0
 public PolarLineSeriesControl()
 {
     InitializeComponent();
     chart.DataSource = FunctionsPointGenerator.GeneratePoints(CircularFunction.Lemniskate);
 }