forked from miloyip/light2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnellslaw.tex
23 lines (23 loc) · 893 Bytes
/
snellslaw.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\documentclass[tikz]{standalone}
\usetikzlibrary{arrows,angles,quotes,calc,decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[>=triangle 45,line width=1.6pt,scale=1.5,font=\fontsize{15pt}{0}]
\coordinate (O) at (0,0);
\coordinate (V) at (-2.5,2);
\coordinate (R) at (2,-2.5);
\coordinate (N) at (0, 3);
\fill[blue!10] (-4,0) rectangle (4,4);
\fill[blue!40] (-4,0) rectangle (4,-4);
\draw[line width=0.5pt] (-4, 0) -- (4, 0);
\draw[->,style=dashed] (O) -- (N) node[anchor=south] {$\hat{\mathbf{n}}$};
\draw[style=dashed] (O) -- (0, -3);
\draw[->] (V) -- (O);
\draw[->] (O) -- (R);
\draw (0,0.5) arc (90:140:0.5);
\draw (0,-0.5) arc (270:310:0.5);
\node[] at (115:0.8) {$\theta_{1}$};
\node[] at (290:0.8) {$\theta_{2}$};
\node[anchor=south] at (-3.5, 0) {$\eta_1$};
\node[anchor=north] at (-3.5, 0) {$\eta_2$};
\end{tikzpicture}
\end{document}