diff options
| author | Ferenc Arn | 2017-01-14 14:35:39 -0600 |
|---|---|---|
| committer | Ferenc Arn | 2017-01-16 13:36:33 -0600 |
| commit | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (patch) | |
| tree | 4d45d7e600a069d7feb2a2dae3a70d6b9ddbf884 /core/math/math_2d.cpp | |
| parent | d13f2f9e25e380496e706b59720cd85eed299ca2 (diff) | |
| download | godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.gz godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.zst godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.zip | |
Diffstat (limited to 'core/math/math_2d.cpp')
| -rw-r--r-- | core/math/math_2d.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/math_2d.cpp b/core/math/math_2d.cpp index c6860ba2e..76eeece68 100644 --- a/core/math/math_2d.cpp +++ b/core/math/math_2d.cpp @@ -239,10 +239,10 @@ Vector2 Vector2::cubic_interpolate(const Vector2& p_b,const Vector2& p_pre_a, co real_t t3 = t2 * t; Vector2 out; - out = 0.5f * ( ( p1 * 2.0f) + + out = 0.5 * ( ( p1 * 2.0) + ( -p0 + p2 ) * t + - ( 2.0f * p0 - 5.0f * p1 + 4 * p2 - p3 ) * t2 + - ( -p0 + 3.0f * p1 - 3.0f * p2 + p3 ) * t3 ); + ( 2.0 * p0 - 5.0 * p1 + 4 * p2 - p3 ) * t2 + + ( -p0 + 3.0 * p1 - 3.0 * p2 + p3 ) * t3 ); return out; /* |
