I need to draw a path leaving the origin at a sight angle and reaching a desired location. Here is my code.
\begin{tikzpicture}
\def\localDistance{5}
\def\localHeight{3}
\def\sightAngle{atan(\localHeight/\localDistance)}
\draw
(0,0) to[out=\sightAngle,in=180]
(\localDistance,\localHeight) node[right]{Error message rises when I set out=\textbackslash sightAngle}
;
\end{tikzpicture}
I get the following error message
No shape named atan(3/localDistance is known.
My question is: what am I doing wrong here?
I saw a similar issue here but at the same time totally different. I tried those suggestions, but didn't work.

localDistanceshould perhaps be\localDistance? – A.Ellett Oct 17 '18 at 20:03