05.08.2015, 15:38
Objective: We know the distance and coordinates of points A and B. How to get coordinates of point C for a given distance?
More detail in picture
More detail in picture
GetDirect3D(Float: dist, Float: X1, Float: Y1, Float: Z1, Float: X2, Float: Y2, Float: Z2, & Float: X3, & Float: Y3, & Float: Z3) {
dist /= VectorSize((X2 -= X1), (Y2 -= Y1), (Z2 -= Z1));
X3 = X1 + X2 * dist;
Y3 = Y1 + Y2 * dist;
Z3 = Z1 + Z2 * dist;
}