Last active
September 30, 2017 03:46
-
-
Save Ionizing/c99e8374f61e5ef6a30b60d607352dff to your computer and use it in GitHub Desktop.
arced coil drawing in tikz. Zhaokaihua ``Mechanics'' ex 6-16.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[tikz]{standalone} | |
\usepackage{newtxmath} | |
\usepackage{tikz} | |
\usetikzlibrary{decorations.pathmorphing} | |
\usetikzlibrary{shapes.geometric,positioning} | |
\begin{document} | |
\begin{tikzpicture} | |
[defsty/.style={circle ,fill=blue!50, minimum size=1cm}, | |
arcsty/.style={ | |
decoration={coil,aspect=0.3,segment length=3mm,amplitude=3mm}, | |
decorate, draw}] | |
\draw (0,0) circle (3cm); | |
\node (node 1) at ( 60: 3.5cm) [defsty] {$m$}; | |
\node (node 2) at (180: 3.5cm) [defsty] {$m$}; | |
\node (node 3) at (-60: 3.5cm) [defsty] {$m$}; | |
\draw[arcsty] (node 1) to [bend right=48] (node 2); | |
\draw[arcsty] (node 2) to [bend right=48] (node 3); | |
\draw[arcsty] (node 3) to [bend right=48] (node 1); | |
\node (text 1) at ( 120: 4cm) [fill=white, line width=0] {$k$}; | |
\node (text 2) at (-120: 4cm) [fill=white, line width=0] {$k$}; | |
\node (text 3) at ( 0: 4cm) [fill=white, line width=0] {$k$}; | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment