%load_ext tikz_magic
%%tikz -p tikz,tkz-euclide,pgfplots
%https://tex.stackexchange.com/a/183376/151162
\usetikzlibrary{calc}
\usetkzobj{all}
\coordinate (A) at (0,0);
\coordinate (B) at ($(A)+(330:3)$);
\coordinate (C) at ($(A)+(230:4)$);
\draw (A) node[above]{$A$} --(B) node[right]{$B$} -- (C) node[left]{$C$} --cycle;
\tkzMarkAngle[size=1.0](C,A,B)
\tkzMarkSegment[color=blue,pos=.5,mark=||](A,C)
\tkzMarkSegment[color=blue,pos=.5,mark=|](A,B)
%%tikz
%https://tex.stackexchange.com/a/371351/151162
\usetikzlibrary{shapes.geometric, calc}
\def\numsides{7} % regular polygon sides
\node (a)
[draw, blue!0!black,rotate=90,minimum size=3cm,regular polygon, regular polygon sides=\numsides] at (0, 0) {};
\foreach \x in {1,2,...,\numsides}
\fill (a.corner \x) circle[radius=.5pt];
\foreach \x in {1,2,...,\numsides}{
\draw [red,dashed, shorten <=-0.5cm,shorten >=-0.5cm](a.center) -- (a.side \x);
\draw [red,dashed, shorten <=-0.5cm,shorten >=-0.5cm](a.center) -- (a.corner \x);}
Based on Geometry: 2.6 Line symmetry
Look at the shapes below. The symmetry of the shape on the left and its relationship to the shape on the right can be thought of in two ways:
Fold the left-hand shape along the central line. Then one side lies exactly on top of the other, and gives the shape on the right.
Imagine a mirror placed along the central dotted line. The reflection in the mirror gives the other half of the shape.
%%tikz
\def\ra{0.8};
\def\rb{2.0};
\def\offset{\rb + 1}
\coordinate (origin) at (0,0);
\draw (origin) arc[start angle=180,end angle=360, x radius=\ra, y radius=\rb] -- cycle;
\draw [dashed ] (0.8,0.2) -- (0.8,-2.2);
\path (origin) +(\offset,0) coordinate (origin2);
\draw (origin2) arc[start angle=180,end angle=270, x radius=0.8, y radius=2];
\draw [dashed ] (origin2) +(\ra,0.2) -- +(\ra,-2.2);
This type of symmetry is called line symmetry.
Any isosceles triangle has line symmetry.
The dashed lines represent lines of symmetry, and each shape is said to be symmetrical about this line.
The following all have line symmetry:
A shape can have more than one line of symmetry. Thus a rectangle has two lines of symmetry, an equilateral triangle has three lines of symmetry, and a square has four.
%%tikz --no-wrap
%symmetry via https://tex.stackexchange.com/a/371351/151162
\usetikzlibrary{shapes.geometric, calc}
%newcomand via https://tex.stackexchange.com/a/27281/151162
\newcommand{\DrawSymmShape}[2]{% numsides, offsetx
\def\numsides{#1}
\def\offsetx{#2}
\node (a)
[draw, blue!0!black,minimum size=3cm,regular polygon, regular polygon sides=\numsides] at (\offsetx, 0) {};
\foreach \x in {1,2,...,\numsides}
\fill (a.corner \x) circle[radius=.5pt];
\foreach \x in {1,2,...,\numsides}{
\draw [red,dashed, shorten <=-0.5cm,shorten >=-0.5cm](a.center) -- (a.side \x);
\draw [red,dashed, shorten <=-0.5cm,shorten >=-0.5cm](a.center) -- (a.corner \x);}
}
\begin{tikzpicture}
\DrawSymmShape{4}{0}
\DrawSymmShape{6}{4}
\end{tikzpicture}
A circle has an infinite number of lines of symmetry since it can be folded about any diameter. Only eight of the possible lines of symmetry are indicated below.
Some shapes, such as a scalene triangle, have no lines of symmetry – it is not possible to fold the shape about a line so that the two halves fit exactly on top of one another.