1
$\begingroup$

Given:

  • Two points: ($x_1$, $y_1$, $z_1$), ($x_2$, $y_2$, $z_2$)
  • A vector that is parallel to the $x$-axis and points to ascending numbers (intuitively stated, the vector points 'East').

I am hoping for a formula that tells me how many degrees I need to rotate the given vector around:

1) the x-axis
2) the y-axis
3) the z-axis

... in order to have the vector become parallel with the line that goes through the given points.

3 Answers 3