protected void Update_the_position_of_the_spiral(System.Object sender, ElapsedEventArgs an_event) { archimedes.get_next_coordinates( b_coefficient, mathematical_distance_traveled_in_one_tic, ref t, out x, out y); x_scaled_double = scale_factor * x; y_scaled_double = scale_factor * y; }
} //End of Manage_spiral_clock //The next method updates the x and y coordinates of the dot that is tracing the path of the spiral. protected void Update_the_position_of_the_spiral(System.Object sender, ElapsedEventArgs an_event) { //Call a method to compute the next pair of Cartesian coordinates for the moving particle tracing the path of the spiral. archimedes.get_next_coordinates( b_coefficient, mathematical_distance_traveled_in_one_tic, ref t, out x, out y); x_scaled_double = scale_factor * x; y_scaled_double = scale_factor * y; } //End of method Update_the_position_of_the_spiral
} //End of Manage_spiral_clock //The next method updates the x and y coordinates of the dot that is tracing the path of the spiral. protected void Update_the_position_of_the_spiral(System.Object sender, ElapsedEventArgs an_event) { //Call a method to compute the next pair of Cartesian coordinates for the moving particle tracing the path of the spiral. archimedes.get_next_coordinates(initial_radius, b_coefficient, mathematical_distance_traveled_in_one_tic, ref t, out x, out y); x_scaled_double = scale_factor * x; y_scaled_double = scale_factor * y; //Update the time keeper that measures active elapsed time after each update of the spiral coordinates. elapsed_time_accumulator += elapsed_time_between_updates_of_spiral_coordinates_rounded / 1000.0; } //End of method Update_the_position_of_the_spiral