diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-15 20:15:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 20:15:14 +0200 |
commit | 1ed00dca882118598d14eae315f608af9de758cf (patch) | |
tree | a157267f0b78c939619cc1a87785db113b61738e /core/math/vector2.cpp | |
parent | d7ab7ff6be29554fc5287e2b7205dbd96213ae08 (diff) | |
parent | a8d12b5a613400024eaeea37266cf7cf4bca3724 (diff) | |
download | redot-engine-1ed00dca882118598d14eae315f608af9de758cf.tar.gz |
Merge pull request #51694 from RicardRC/constconstconstconstconstconst
Fix compilation with float=64
Diffstat (limited to 'core/math/vector2.cpp')
-rw-r--r-- | core/math/vector2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/vector2.cpp b/core/math/vector2.cpp index eb3301f5d0..54abc1b7f2 100644 --- a/core/math/vector2.cpp +++ b/core/math/vector2.cpp @@ -102,7 +102,7 @@ Vector2 Vector2::round() const { return Vector2(Math::round(x), Math::round(y)); } -Vector2 Vector2::rotated(real_t p_by) const { +Vector2 Vector2::rotated(const real_t p_by) const { real_t sine = Math::sin(p_by); real_t cosi = Math::cos(p_by); return Vector2( @@ -145,7 +145,7 @@ Vector2 Vector2::limit_length(const real_t p_len) const { return v; } -Vector2 Vector2::cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, real_t p_weight) const { +Vector2 Vector2::cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, const real_t p_weight) const { Vector2 p0 = p_pre_a; Vector2 p1 = *this; Vector2 p2 = p_b; |