I have a simple 2D system in which speed is represented as speed (some value) and direction (angle). If I have an object moving at a given speed v when another speed v 2 acts on it , I want to calculate the resulting speed v 3 .
I created the following illustration to explain the physical system that I want to implement. Speeds and angles may not be entirely accurate, because I don’t know how to calculate them - this is the essence of this issue, but they serve as a pretty close guide.

v 3, v 2 , v?
, , . TypeScript, JavaScript, ( ) .