A side cannot be an axis. The normal of a side can be an axis. If you take the normal of a side as a rotation axis the rotation axis will correspond to the normals of both sides.

http://www.conitec.net/beta/aentity-pan.htm


Always learn from history, to be sure you make the same mistakes again...