diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-01 10:49:05 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-01 12:11:36 +0100 |
commit | e52213e2fa3d8f216a92152caf862be44b8035e2 (patch) | |
tree | d0cec26cbfddce57af8684ed31701b8987047d49 /core/math/transform_2d.cpp | |
parent | c40020513ac8201a449b5ae2eeb58fef0ce0a2a4 (diff) |
More codespell fixes, do more changes from previous ignore list
Diffstat (limited to 'core/math/transform_2d.cpp')
-rw-r--r-- | core/math/transform_2d.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/transform_2d.cpp b/core/math/transform_2d.cpp index 96010b4096..868665cb5c 100644 --- a/core/math/transform_2d.cpp +++ b/core/math/transform_2d.cpp @@ -151,7 +151,7 @@ void Transform2D::orthonormalize() { Vector2 y = columns[1]; x.normalize(); - y = (y - x * (x.dot(y))); + y = y - x * x.dot(y); y.normalize(); columns[0] = x; @@ -159,9 +159,9 @@ void Transform2D::orthonormalize() { } Transform2D Transform2D::orthonormalized() const { - Transform2D on = *this; - on.orthonormalize(); - return on; + Transform2D ortho = *this; + ortho.orthonormalize(); + return ortho; } bool Transform2D::is_equal_approx(const Transform2D &p_transform) const { |