Rotating $3D$ one point to the other point

30 Views Asked by At

Let's say I have a point $A \ (1,2,3)$ and point $B\ (2,3,4)$ If I want to get point $B$ from point $A$ using angles between $A$ and $B$ in $x,y,z$ axis. How can I get point $B$ from point $A$? Here is my method: Get a direction vector from $A$ and $B$ then I can have three degrees in the $x,y,z$-axis. Calculate the degree between $A$ and $B$ and apply rotation matrices for each axis. However, I am not getting the same point as $B$ if I did like that. How can I get the point $B$ from point $A$ using angles?