now template

This commit is contained in:
Vladislav Alpatov
2025-03-01 21:11:46 +03:00
parent 9ba3bc754a
commit 6d0d267743
43 changed files with 224 additions and 256 deletions

View File

@@ -315,7 +315,7 @@ namespace omath
};
}
Matrix Matrix::TranslationMatrix(const Vector3& diff)
Matrix Matrix::TranslationMatrix(const Vector3<float>& diff)
{
return {
{1.f, 0.f, 0.f, 0.f},
@@ -325,7 +325,7 @@ namespace omath
};
}
Matrix Matrix::OrientationMatrix(const Vector3& forward, const Vector3& right, const Vector3& up)
Matrix Matrix::OrientationMatrix(const Vector3<float>& forward, const Vector3<float>& right, const Vector3<float>& up)
{
return {
{right.x, up.x, forward.x, 0.f},