Skip to content

Instantly share code, notes, and snippets.

@VincentTam
Created January 31, 2016 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VincentTam/7c90d25563ac3370e5d0 to your computer and use it in GitHub Desktop.
Save VincentTam/7c90d25563ac3370e5d0 to your computer and use it in GitHub Desktop.
\documentclass[tikz]{standalone}
\usetikzlibrary{calc,through}
\begin{document}
\begin{tikzpicture}[scale = 2]
\coordinate [label=left:$O$] (O) at (0,0);
\coordinate [label=left:$L$] (L) at (0.7,1.1);
\coordinate [label=below:$S_n$] (Sn) at (0.6,0.7);
\coordinate (SqCorn1) at (0.2,0.6);
\coordinate (SqCorn2) at (1.2,1.6);
\coordinate (SqCorn3) at (1.2,0.6);
\coordinate (D8h) at (0.7,1.6);
\draw [fill] (O) circle [radius = 0.025];
\draw (O) circle (1);
\draw (O) -- (120:1) node[pos=0.5,above] {$r = 1$};
\node [below] at (0,-1) {$D$};
\draw [blue,fill] (L) circle [radius = 0.025];
\draw [blue,dashed] (SqCorn1) rectangle (SqCorn2);
\draw [<->,blue] (L) -- (D8h) node[pos=0.5,right]
{$\frac{\varepsilon}{\sqrt{2}}$};
\draw [<->,blue] (L) -- (SqCorn3) node[pos=0.5,above] {$r = \varepsilon$};
\node (E) [draw,blue,dashdotted,circle through=(SqCorn1),label=right:$C$]
at (L) {};
\draw (0,0) -- (L);
\draw [fill] (Sn) circle [radius = 0.025];
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment