Math Help - Obtaining Euler angles from two points

1. Obtaining Euler angles from two points

Hi, I have a problem. Essentially I have two points, which are centered about the origin but located arbitrarily in space otherwise. Basically I want to obtain the three Euler angles which transform my coordinates to a coordinate system where the points lie along the y' (transformed y) axis. It seems possible although I'm not sure exactly how to do it.

2. Re: Obtaining Euler angles from two points

Hey lirak88.

If you want to transform point x to x' then compute the cross product to get the rotation axis and use the dot product (normalized against the lengths of the vectors) to get the angle (it will be cos(theta)).

You can then use standard formulae to find the Euler angles given the rotation axis.