added unit tests

This commit is contained in:
2025-04-16 18:35:50 +03:00
parent 3f6ea010dc
commit bed204a663
6 changed files with 43 additions and 11 deletions

View File

@@ -34,7 +34,7 @@ namespace omath::opengl_engine
{
return MatRotationAxisZ<float, MatStoreType::COLUMN_MAJOR>(angles.roll) *
MatRotationAxisY<float, MatStoreType::COLUMN_MAJOR>(angles.yaw) *
MatRotationAxisX<float, MatStoreType::COLUMN_MAJOR>(angles.pitch);
MatRotationAxisX<float, MatStoreType::COLUMN_MAJOR>(-angles.pitch);
}
Mat4x4 CalcPerspectiveProjectionMatrix(const float fieldOfView, const float aspectRatio, const float near,
const float far)