Pour avoir une bonne version de cette conversion, il faut aller sur cette page http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm

Le calcul y est...