Trigonometry is not just done once by engineers on the ground. A modern rocket's flight computer actively runs vector decomposition calculus thousands of times per second.
If a rocket starts leaning too far to the left, it has no wings or ailerons to steer it through the thin upper atmosphere. To fix the trajectory, the rocket must physically steer its own exhaust plume.
This is accomplished through Gimbaling. The entire rocket engine bell is mounted on powerful hydraulic or electric actuators. By physically tilting the engine bell a few degrees, the primary Thrust Vector shifts. Doing this actively moves the $F_x$ and $F_y$ components off-center, causing the tail of the rocket to deliberately slide sideways, essentially steering the entire 2-million-pound ship through pure trigonometry.
FIGURE 3.3: GIMBAL MOUNTS
Look closely at the top of any rocket engine (like this Apollo F-1). You will see massive hydraulic pistons connecting the bell to the rocket body. These pistons steer the rocket by pushing and pulling to change the angle $\theta$ of the primary thrust vector.
Throughout all of this, the rocket's flight computer must simultaneously calculate the absolute most important vector of all: Gravity.
Gravity is not a scalar condition; it is a permanent Vector constantly pointing straight down toward the center of the Earth. From the exact moment of liftoff, the downward Gravity Vector is aggressively subtracting from your upward Thrust Vector component ($F_y$).
If your rocket has $100\text{ kN}$ of Thrust pointing straight up, and the vehicle's immense weight generates $98\text{ kN}$ of Gravitational force pointing straight down, your Net $Y$ Vector is dangerously thin: