Two mirrors

Two mirror lines meeting at an angle of 180o/n make a dihedral group with n-fold rotational symmetry.

The input image is mapped onto the structure of this group.


Rotational symmetry:


The dihedral group gives results more rapidly than using ray-tracing to select multiple reflections at mirror lines.