Naughty Dog interview question

How do you find a vector given any two points?

Interview Answer

Anonymous

22 June 2020

Given point A and B, two vectors can be formed, one from A to B and the other from B to A, to create the first one, it is B - A which will give you vector AB, and the other is A - B which will give you vector BA.