[af_math] matrix to quaternion