|
@@ -0,0 +1,27 @@
|
|
|
+\documentclass[varwidth=true, border=2pt]{standalone}
|
|
|
+\usepackage{tikz}
|
|
|
+\usetikzlibrary{calc}
|
|
|
+\usepackage{amsmath,amssymb}
|
|
|
+
|
|
|
+\begin{document}
|
|
|
+\begin{tikzpicture}
|
|
|
+ \newcommand{\R}{1.5} % radius of the circle
|
|
|
+ \newcommand{\n}{6} % edges of the polygon
|
|
|
+
|
|
|
+ % Center
|
|
|
+ \path ( 0,0) coordinate (M);
|
|
|
+
|
|
|
+ % Inner polygon
|
|
|
+ \foreach \nr in {1, ..., \n}{
|
|
|
+ \path (360/\n*\nr:\R) coordinate (i\nr);
|
|
|
+ \draw (M) -- (i\nr);
|
|
|
+ }
|
|
|
+ \draw (0:0.3*\R) arc (0:360/\n:0.3*\R);
|
|
|
+ \coordinate[label=right:$\alpha$] (Alpha) at ({2*360/(\n+2)}:0.1*\R);
|
|
|
+ \draw (i1) -- (i2) -- (i3) -- (i4) --(i5) -- (i6) -- cycle;
|
|
|
+
|
|
|
+ % Circle
|
|
|
+ \draw[green] (0,0) circle (\R);
|
|
|
+
|
|
|
+\end{tikzpicture}
|
|
|
+\end{document}
|