Symmetry Finder

The learner applies rotations, reflections, translations or glides to a plane figure (polygon, pinwheel, stick figure, heart, rectangle) or a strip pattern; the figure animates onto its image and either lands on its dashed outline (a symmetry, recorded as a chip) or visibly does not. Found symmetries compose by tapping, and once all are found the group is named (Z_n, D_n, the translation group T_v) with its composition table.

Used in: Group Theory

Props

PropTypeDefaultDescription
titlestring"Symmetries of a <figure>" / "Symmetries of a strip pattern"Title bar text.
mode"figure" | "frieze"frieze when motif is given without figure, else figurefigure: a bounded plane figure; its symmetries are rotations about the centre and reflections in axes through it. frieze: a strip pattern repeating along a vector v; translations, the midline mirror, vertical mirrors, half turns and glides. (Wallpaper patterns are not part of this build.)
figureobject | string{"regularPolygon": 3}figure mode: {"regularPolygon": n} (3-12; odd n vertex on top, even n edge on top), {"pinwheel": n} (2-12 curved petals, rotations only), {"bilateral": "stick-figure" | "heart" | ["stick-figure", "heart"]} (two shapes move together, each about its own centre), {"rectangle": [w, h]} or {"rectangle": true} (2 x 1), {"square": true}, {"rhombus": true}. Strings "square", "rectangle", "rhombus", "heart", "stick-figure", "bilateral", "polygon-5", "pinwheel-5" also work.
motif"vine" | "figures" | "arrow" | "footprints" | string[]"vine"frieze mode: the strip pattern (period v). vine (leaves above, flowers below) and figures (a row of running figures) are chiral: only translations. arrow adds the midline mirror; footprints have a glide reflection. Two motifs (e.g. ["vine", "figures"]) are stacked and move together.
presets(figure | motif)[]noneMore figures offered in a picker (figure objects, or motif names for strips). Each preset uses its default candidates.
candidatesstring[]figure: rotate 360k/N (k = 1..N-1) and reflect 180j/N (j = 0..N-1), N = n for polygons and pinwheels, 4 otherwise; frieze: translate 1, translate -1, translate 1/2, reflect horizontal, reflect vertical, rotate 180, glide 1/2The transformation buttons, for the initial figure: "rotate <deg>" (counterclockwise), "reflect <deg>" (axis angle from the vertical, counterclockwise; or vertical / horizontal / diagonal / antidiagonal); frieze: "translate <k>" and "glide <k>" (k in units of v, fractions like 1/2 allowed), "reflect horizontal" (midline), "reflect vertical [at c]", "rotate 180 [at c]".
found"all" | string[][] (only e)Symmetries already found at the start: "all" (figure: the whole group; frieze: t_v, t_-v and one of each other kind), or a list of element names ("r", "r^2 s", "s_3", "mu_1", "t_v") or candidate strings.
applystringnoneA candidate string shown already applied at the start (its image drawn, the verdict shown), e.g. "reflect 0" on a pinwheel to show a reflection failing.
composestring[]noneAn initial composition word g1 ∘ g2 ∘ ... (up to 4 element names or candidate strings, all symmetries), shown with its result; e.g. ["s", "r", "s"] gives srs = r^{n-1}.
labelStyle"rs" | "sk" | "rho-mu""rs"Element names in figure mode. rs: e, r, r^k, s, rs, r^k s (s = reflection in the vertical axis, r = rotation by 360/n counterclockwise). sk: reflections named s_k = r^k s (the axis at 180k/n from that of s). rho-mu: rho_0 .. rho_{n-1} and mu_1 .. mu_n (odd n: mu_k fixes vertex k).
dihedralName"D_n" | "D_2n""D_n"How the dihedral group of a regular n-gon is written: D_n (subscript n, the corpus) or D_2n (subscript the order, e.g. D_10 for the pentagon).
vertexLabelsboolean | string[]falsePolygons and rectangles: label the vertices (true = 1..n, or the given labels, e.g. ["A", "B", "C"]); the labels move with the figure, so the vertex permutation is visible.
showAxesbooleanfalseDraw the mirror axes of the figure dashed (labelled s, or s_k with labelStyle sk) and an arc for r (n >= 3); frieze: the mirror lines of the strip.
showCompositionbooleantrueFound symmetries can be tapped to build a composition (right to left), whose result is named and added to the found set.
showTablebooleantrueOnce every symmetry is found, show the composition (Cayley) table (figure mode, order <= 24) or the translation rule t_av ∘ t_bv = t_(a+b)v (frieze).
showInversebooleanfalseWith a composition of 2+ elements, also show its inverse, the reversed product of inverses (equal) and the same-order product of inverses (often different).
freeAnglebooleantrueA slider to try any rotation angle or reflection axis (figure, in steps of about 6 and 3 degrees), or any translation or glide shift (frieze, quarter periods).
readoutstring[]["order", "groupType"]Readouts: order (the number of symmetries, once all are found), groupType (the group's name), permutation (the vertex permutation of the last transformation and of a composition; needs vertexLabels).
controlsstring[]all controls shownIds of the hideable readouts to show (see the controls registry, e.g. readout.order, readout.group-name, readout.inverse, readout.permutation). Core controls always show; a readout also needs its prop (readout, showInverse). Page building fills this from the subject's topic scope.