Relative Velocity
Since velocity is a vector, we get the total velocity by simply adding the velocity of the object in or on the medium to the velocity of the medium.
But we must add these two velocities as vectors! That means, we must work in rectangular coordinates.