Original Post
So recently I came across a problem where I needed to solve for "t" from the line equation
P = P0 + t(P1 - P0)
where P, P0, and P1 are vectors like [1,2,3] and t is a real number.
So I came up with the following equation for t
t = (P - P0) / (P1 - P0)
then it dawned on me that I don't know how to divide 2 vectors and get a scalar. In MatLab, if I divde 2 vectors I get a scalar
but I have no idea what it is doing behind the scenes. Could you please enlighten me?
P = P0 + t(P1 - P0)
where P, P0, and P1 are vectors like [1,2,3] and t is a real number.
So I came up with the following equation for t
t = (P - P0) / (P1 - P0)
then it dawned on me that I don't know how to divide 2 vectors and get a scalar. In MatLab, if I divde 2 vectors I get a scalar
but I have no idea what it is doing behind the scenes. Could you please enlighten me?