From eb8688c90c1db4ad60e8e3b03c653b7ac7a4df51 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 14 Oct 2025 13:06:23 +0300 Subject: [PATCH] Unifies orthographic matrix generation Consolidates the generation of left-handed and right-handed orthographic matrices into a shared implementation to reduce code duplication. --- include/omath/linear_algebra/mat.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index b926edd..a272118 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -666,8 +666,7 @@ namespace omath } template [[nodiscard]] - Mat<4, 4, Type, St> mat_ortho_left_handed(const Type left, const Type right, - const Type bottom, const Type top, + Mat<4, 4, Type, St> mat_ortho_left_handed(const Type left, const Type right, const Type bottom, const Type top, const Type near, const Type far) noexcept { return @@ -680,9 +679,8 @@ namespace omath } template [[nodiscard]] - Mat<4, 4, Type, St> mat_ortho_right_handed(const Type left, const Type right, - const Type bottom, const Type top, - const Type near, const Type far) noexcept + Mat<4, 4, Type, St> mat_ortho_right_handed(const Type left, const Type right, const Type bottom, const Type top, + const Type near, const Type far) noexcept { return {