Quaternion conversion to matrix, homogeneous