Interactive Modular Arithmetic Rotation

This interactive shows how rotation demonstrates modular arithmetic. The total rotation mod 360 is equal to the current angle in degrees. Click and drag the control point to change the total rotation. The equation below describes this mathematically:

Where r represents the total rotation, 360 ° represents one full rotation, and θ represents the current angle or direction.