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.