Operations with Vectors

Hi,

I need some help guys!
I would like to understand how can I make vectors addition/subtraction operation.
Let’s say I have 4 variables represent 2 vectors:
VD1 - Vector Direction
VM1 - Vector Magnitude
VD2
VM2

What do you think will be the easiest/smartest way to add/subtract those two?

Thank!!

Adam

The typical way to do this is to decompose the vectors into their x and y components using the trig functions sin, cos, combine the two values, and then use the Pythagorean theorem and atan2 to get the new magnitude and direction, respectively.