Hello, I have read about Euler's angles and matrices, including zxz,zyz, etc . I am not obliged to use a specific rotation but rather I want to figure out what angles I need to use for alpha,theta, gamma in the specific matrix. For example, I have a vector from the centre with vertex x,y,z of (0,0,15), I want to rotate it to (3,-12,15), what angles should I use or how can I obtain these angles ? If let's say I choose zyz, i am finding difficulties finding the corresponding angles after the first x-y plane rotation. Please disregard the scaling factor and just consider the orientation. Look forward to hearing from you
Use quaternion to Euler convertion. Doing a search in Google will produce hundreds of examples. Here are just a few... http://stackoverflow.com/questions/...gorithm-how-to-convert-to-y-up-and-between-ha http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/ http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles