Calculate the resultant of two vectors.