diff options
| author | Rémi Verschelde | 2017-03-24 21:45:31 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-24 21:45:31 +0100 |
| commit | debeee56f721178d44f71deb4e303b825d1dccd1 (patch) | |
| tree | 6c88f378419a5760bbe919c48c87d1c71a6ea548 /core/math/matrix3.cpp | |
| parent | c103f32ea3b19c3588d54dcef98e307f8b823f4c (diff) | |
| download | godot-debeee56f721178d44f71deb4e303b825d1dccd1.tar.gz godot-debeee56f721178d44f71deb4e303b825d1dccd1.tar.zst godot-debeee56f721178d44f71deb4e303b825d1dccd1.zip | |
Diffstat (limited to 'core/math/matrix3.cpp')
| -rw-r--r-- | core/math/matrix3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/matrix3.cpp b/core/math/matrix3.cpp index 5f73d91ef..98cab39ba 100644 --- a/core/math/matrix3.cpp +++ b/core/math/matrix3.cpp @@ -229,7 +229,7 @@ Vector3 Basis::get_scale() const { // FIXME: We eventually need a proper polar decomposition. // As a cheap workaround until then, to ensure that R is a proper rotation matrix with determinant +1 // (such that it can be represented by a Quat or Euler angles), we absorb the sign flip into the scaling matrix. - // As such, it works in conjuction with get_rotation(). + // As such, it works in conjunction with get_rotation(). real_t det_sign = determinant() > 0 ? 1 : -1; return det_sign * Vector3( Vector3(elements[0][0], elements[1][0], elements[2][0]).length(), |
