How to caulcate Euler Angles [Roll Φ(Phi), Pitch θ(Theta), Yaw Ψ(Psi)] between two XYZ cartesian coordinates/points (Origin to Target)?

2.3k Views Asked by At

I have two point (Origin and Target) in 3D XYZ cartesian coordinates. How to caulcate Euler Angles rotation [Roll Φ(Phi)/α(alpha), Pitch θ(Theta)/β(Beta), Yaw Ψ(Psi)/γ(Gamma)] between the two points, from Origin to Target?