blob: 8f55281efb321c0151b42d581b476b8c34052f26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\begin{document}
\mplibtextextlabel{enable}
\begin{mplibcode}
beginfig(1);
path ray;
numeric theta;
ray = origin -- 200 right;
theta = 42;
draw ray;
draw ray rotated 1/3 theta withcolor 2/3 red;
draw ray rotated 2/3 theta withcolor 2/3 red;
draw ray rotated theta;
dotlabel.llft("$0$", origin);
label("$\theta/3$", 72 right rotated 1/6 theta) withcolor 2/3 blue;
label("$\theta/3$", 72 right rotated 3/6 theta) withcolor 2/3 blue;
label("$\theta/3$", 72 right rotated 5/6 theta) withcolor 2/3 blue;
endfig;
\end{mplibcode}
\end{document}
|