This commit is contained in:
Thompson Lee 2017-02-15 16:58:58 +00:00 committed by GitHub
commit f831c701e2

View File

@ -712,6 +712,14 @@ C3D_FQuat Quat_RotateZ(C3D_FQuat q, float r, bool bRightSide);
*/
C3D_FQuat Quat_FromMtx(const C3D_Mtx* m);
/**
* @brief Get Quaternion equivalent to 4x4 matrix
* @note If the matrix is orthogonal or special orthogonal, where determinant(matrix) = +1.0f, then the matrix can be converted.
* @param[in] m Input Matrix
* @return Generated Quaternion
*/
C3D_FQuat Quat_FromMtx(const C3D_Mtx* m);
/**
* @brief Identity Quaternion
* @return Identity Quaternion