diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-28 17:10:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-28 17:10:52 +0200 |
| commit | f7d852b5322104a90d45ef63c2ee54c937429487 (patch) | |
| tree | 88adafe357d9de615c9a89088af86a4fbcb1bd94 /core/math/vector2.cpp | |
| parent | e2deec67b9b3258f1c4fc7ee8c9a375676a0571a (diff) | |
| parent | 0ae65472e71324b3bb0fb43038630d31e700e562 (diff) | |
| download | redot-engine-f7d852b5322104a90d45ef63c2ee54c937429487.tar.gz | |
Merge pull request #54350 from akien-mga/clang-format-dont-align-operands
Diffstat (limited to 'core/math/vector2.cpp')
| -rw-r--r-- | core/math/vector2.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/math/vector2.cpp b/core/math/vector2.cpp index 16e43d7d06..6259bdead0 100644 --- a/core/math/vector2.cpp +++ b/core/math/vector2.cpp @@ -160,10 +160,11 @@ Vector2 Vector2::cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, c real_t t3 = t2 * t; Vector2 out; - out = 0.5 * ((p1 * 2.0) + - (-p0 + p2) * t + - (2.0 * p0 - 5.0 * p1 + 4 * p2 - p3) * t2 + - (-p0 + 3.0 * p1 - 3.0 * p2 + p3) * t3); + out = 0.5 * + ((p1 * 2.0) + + (-p0 + p2) * t + + (2.0 * p0 - 5.0 * p1 + 4 * p2 - p3) * t2 + + (-p0 + 3.0 * p1 - 3.0 * p2 + p3) * t3); return out; } |
