Added TransformMatrix functions in Matrix.h

This commit is contained in:
hyzboy 2024-07-17 01:37:14 +08:00
parent 21d282d0ba
commit b07a4bb5be

View File

@ -167,5 +167,20 @@ namespace hgl
{
return normalize(m*v);
}
inline Matrix3f TransformMatrix(const Matrix3f &root,const Matrix3f &child)
{
return root*child;
}
inline Matrix3f TransformMatrix(const Matrix4f &root,const Matrix3f &child)
{
return Matrix3f(root*Matrix4f(child));
}
inline Matrix4f TransformMatrix(const Matrix4f &root,const Matrix4f &child)
{
return root*child;
}
}//namespace hgl
#endif//HGL_ALGORITHM_MATH_VECTOR_MATRIX_INCLUDE