-
Notifications
You must be signed in to change notification settings - Fork 123
/
box.tex
16 lines (16 loc) · 632 Bytes
/
box.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\documentclass[tikz]{standalone}
\usetikzlibrary{arrows,angles,quotes,calc}
\begin{document}
\begin{tikzpicture}[>=triangle 45,line width=1pt,scale=1.0,font=\fontsize{10pt}{0}]
\def\W{3};
\def\H{2};
\begin{scope}[rotate=-20]
\draw (-\W, -\H) -- (\W, -\H) -- (\W, \H) -- (-\W, \H) -- (-\W, -\H);
\filldraw (0, 0) node[anchor=south east] {$\mathbf{c}$} circle (2pt);
\draw [->] (0,0) -- node[anchor=south west] {$\mathbf{s}$} (\W, -\H);
\draw [dashed] (0, 0) -- (\W, 0);
\draw (0,0) -- (right:1) arc (0:20:1) node [anchor=north west] {$\theta$};
\end{scope}
\draw [dashed] (0, 0) -- (4, 0);
\end{tikzpicture}
\end{document}