diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-06 18:16:06 +0000 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-06 18:16:06 +0000 |
commit | a24c38d1a814f5bc4979b99d6652f4bf2f2982c7 (patch) | |
tree | 3635c158604917758f663f14f2220ef1a19dfcbb /core/math/vector2.h | |
parent | d834789f475d431b10dcaef8804cd75dcd8b47dd (diff) | |
download | redot-engine-a24c38d1a814f5bc4979b99d6652f4bf2f2982c7.tar.gz |
Rename Vector2.tangent() to Vector2.orthogonal()
Diffstat (limited to 'core/math/vector2.h')
-rw-r--r-- | core/math/vector2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector2.h b/core/math/vector2.h index 8cb63b2fb5..ce37ded395 100644 --- a/core/math/vector2.h +++ b/core/math/vector2.h @@ -134,7 +134,7 @@ struct Vector2 { } Vector2 rotated(real_t p_by) const; - Vector2 tangent() const { + Vector2 orthogonal() const { return Vector2(y, -x); } |