I have two locations, X1/Y1/Z1, and X2/Y2/Z2. How do I go from the first point to the second in an imcrement of 0.5? Do I have to do it somehow using vectors?
-Git
Printable View
I have two locations, X1/Y1/Z1, and X2/Y2/Z2. How do I go from the first point to the second in an imcrement of 0.5? Do I have to do it somehow using vectors?
-Git
yes, you have V1 and V2 position vectors, and want V3 of length 0.5 parallell to V2-V1
V3 is then 0.5*(V2-V1) / |V2-V1|
differences of components for vector difference and multiply components with factor for vector product.
|V*| is the magnitude of a vector and is evaluated with
sqr(X*X+Y*Y+Z*Z)