Dynamics of the piecewise rotation on the torus.

The generating map rotates the unit square about the point S0 and then shift back pieces that sticking outside of the original square. The map is a piecewise isometry. The password needed to input new parameters can be obtained from the author.