So I have point A, and point B, with let's say coordinates (1,3,5), and (7,8,9) respectively. Then I have a unit vector C, (0,1,0). How would I find if point B lies on the vector that's created, from A going in C's direction.
I guess another way to put it is, find if the line between (1,3,5) and (1,4,5) crosses (7,8,9). But to do it in a more elegant way using vector operations like dot products or cross products
Edit: Sorry, my mistake. I edited unit vector C so it's length 1 and point B accordingly.
B - A should be equal to r*C for some constant r.
BTW, C is not a unit vector.