Identifying transformations that map a regular polygon onto itself