I'm working on a 2 degree of freedom simulation of gas dynamics.
Suppose you have two vectors in the x-y plane. Each vector has two tails, or coordinates where they start. Because I'm looking for a point in the future where the vectors will intersect, I can treat the vectors as rays, as long as they maintain the same direction and tail. How can you find where, or if, they intersect?
The Vectors in the program are stores as having an x-Magnitude, y-Magnitude, and a coordinate position for their tails.
Each vector can be represented as $V_k=a_k+s_kb_k$ where $a_k$ are the start points, $b_k$ the direction vectors and $s_k$ distances (scalar) along the vectors. Use $V_1=V_2$ to find values for $s_k$, where the vectors meet.
Note that $a_k$ and $b_k$ are known. Answer is given by solving for $s_k$.