The left picture shows theta as it increases from 0 degrees to 360 degrees.
The right picture shows the sine of theta, the X-axis is theta and the Y-axis is the sine of theta.
Press any key to start/stop animation.
Sine waves are used to control smooth movements of objects.
The top robot moves at a constant speed and the movement is not smooth. The movement of the top robot is controlled by the following code:
The bottom robot uses a sine wave so it moves faster in the middle and slower near the edges. It is controlled by the following code:
Press any key to start/stop animation.
Press any key to start/stop animation.