From f18fbfdcdbaa063fc6fdef8dd99f9a19309b6eb0 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 3 Oct 2020 18:44:18 +0300 Subject: [PATCH] Fix scale transformation matrix --- libs/geom/include/psemek/geom/scale.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/geom/include/psemek/geom/scale.hpp b/libs/geom/include/psemek/geom/scale.hpp index 9f56212d..5090307f 100644 --- a/libs/geom/include/psemek/geom/scale.hpp +++ b/libs/geom/include/psemek/geom/scale.hpp @@ -52,7 +52,7 @@ namespace psemek::geom template matrix scale::affine_matrix() const { - auto result = matrix::zero(); + auto result = matrix::identity(); fill_matrix(result); return result; } @@ -60,7 +60,7 @@ namespace psemek::geom template matrix scale::linear_matrix() const { - auto result = matrix::zero(); + auto result = matrix::identity(); fill_matrix(result); return result; } @@ -74,7 +74,7 @@ namespace psemek::geom template matrix scale::homogeneous_matrix() const { - auto result = matrix::zero(); + auto result = matrix::identity(); fill_matrix(result); return result; }