コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            PlotTimer = new DispatcherTimer {
                Interval = TimeSpan.FromMilliseconds(1000 / 60)
            };
            PlotTimer.Tick += Timer_Tick;

            RandomTimer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(1.5)
            };
            RandomTimer.Tick += RandomTimer_Tick;

            Stopwatch = new Stopwatch();

            Simulator = new PendulumSet();

            Plotter = new PathBuider(Simulator);
        }
コード例 #2
0
 public PathBuider(PendulumSet pendulumSet)
 {
     PendulumSet = pendulumSet;
 }