Symmetry of two-dimensional shapes