Euclidean Space http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm