latex-pictures

A collection of TikZ drawings and other images 🖌️

square-to-circle-projection.tikz (514B)

 1 \begin{tikzpicture}
 2     \draw circle (3);
 3     \filldraw circle (1pt);
 4     \draw ({3 * cos(45)}, {3 * sin(45)})
 5           -- ({-3 * cos(45)}, {3 * sin(45)})
 6           -- ({-3 * cos(45)}, {-3 * sin(45)})
 7           -- ({3 * cos(45)}, {-3 * sin(45)})
 8            -- cycle;
 9             
10     \coordinate (a) at ({3 * sqrt(6)/6}, {3 * sin(45)});
11     \coordinate (b) at ({3 * cos(45 + 15)}, {3 * sin(45 + 15)});
12     
13     \draw[thick, dotted] (0, 0) -- (b);
14     \filldraw (a) circle (1pt) (b) circle (1pt);
15 \end{tikzpicture}