diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-15 09:56:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-15 09:56:21 +0100 |
| commit | d975b1bc3787db88dfbe4d02909fbe82e023605d (patch) | |
| tree | 9b74687c40cd63d49441aba787bc2ee7b061e386 /core | |
| parent | b6c002f32d3ee01f227dbaaf15caf5ce378f2fb6 (diff) | |
| parent | 606cfa9a47a945eefa6e4f2cf64599af9f0157ab (diff) | |
| download | redot-engine-d975b1bc3787db88dfbe4d02909fbe82e023605d.tar.gz | |
Merge pull request #43072 from KoBeWi/point_to_angle
Diffstat (limited to 'core')
| -rw-r--r-- | core/math/vector2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector2.cpp b/core/math/vector2.cpp index 6259bdead0..1d3f93848e 100644 --- a/core/math/vector2.cpp +++ b/core/math/vector2.cpp @@ -79,7 +79,7 @@ real_t Vector2::angle_to(const Vector2 &p_vector2) const { } real_t Vector2::angle_to_point(const Vector2 &p_vector2) const { - return (*this - p_vector2).angle(); + return (p_vector2 - *this).angle(); } real_t Vector2::dot(const Vector2 &p_other) const { |
