Is it possibile to evaluate an angle in Tikz? I googled a lot but I can't find anything exhausting. My problem is the following: I have an arc intersected by a bundle of parallel lines, like shawn in the picture below
Once drawn the arc (path name=mirror) I used this code
\foreach \y in {-1.6,-0.8,...,1.6}
{
\path [name path=ray] (-1,\y) -- ($ (-1,\y) + (10,0) $);
\path [name intersections={of=ray and mirror, by={P}}];
\draw [thick, postaction={on each segment={mid arrow=black}}] (-1,\y) -- (P);
\draw [thick, dashed, name path=refracted] (P) -- (F);
\begin{scope}[shift={(P)}]
\end{scope}
}
to generate the bundle of lines. I would like to draw some lines like these in red
To do this, I thought to evaluate the angle between P--F--V and, after a shift of the coordinate system in P (which changes for each line), then draw a simply line using
\draw [thick] (\myAngle:2cm);
\documentclass
and ends with\end{document}
? BTW, the computation of the angle is already done in the lowest example of tex.stackexchange.com/a/520724/194703.calc
library (you seem to already use it). There is a way to do exactly what you ask for.