The trigonometric functions arise from geometric considerations. It was Euler who discovered the relation between the trigonometric functions and the exponential function as encoded in the Euler formula
\begin{equation*}
E(ix)=\cos (x) + i \sin (x).
\end{equation*}
But the series converges for all complex valued \(x\text{,}\) so we also define \(\cos x\) and \(\sin x\) for complex valued \(x\) using the above series.
Note that the definitions for these trigonometric functions are in purely analytic means, thus these trigonometric functions as defined this way do not directly have relations with the ones defined geometrically. Rudinโs development follows this approach and does not use any of the properties as given by the geometric approach. For instance, he sets out to prove that \(E(x)\) has a purely imaginary period, labeled as \(2\pi i\text{,}\) and use this to show that both \(\cos x\) and \(\sin x\) also have \(2\pi i\) as their period; but the \(2\pi\) here does not have a direct relation with the angle interpretation in geometry. This kind of treatment is fine for a rigorous development of calculus, but should not be taken as a discouragement from relating to the geometric approach. In fact it is much more productive to fully use the geometric interpretation; one just needs to be ware of the places where a certain geometric properties play a crucial role and how those arguments can be replaced by purely analytical ones.