Generalized chasing rotating polygon.

This is a generalization of this:

chasing_triangle_rotating.html