Common: add convenience function to convert a Quaternion to a Matrix44

This commit is contained in:
iwubcode
2020-10-22 22:48:22 -05:00
parent 4740c2a882
commit 544692f96a
2 changed files with 6 additions and 0 deletions

View File

@ -269,6 +269,11 @@ Matrix44 Matrix44::FromMatrix33(const Matrix33& m33)
return mtx;
}
Matrix44 Matrix44::FromQuaternion(const Quaternion& q)
{
return FromMatrix33(Matrix33::FromQuaternion(q));
}
Matrix44 Matrix44::FromArray(const std::array<float, 16>& arr)
{
Matrix44 mtx;