summaryrefslogtreecommitdiffstats
path: root/core/math/vector2.h
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-06 18:16:06 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-06 18:16:06 +0000
commita24c38d1a814f5bc4979b99d6652f4bf2f2982c7 (patch)
tree3635c158604917758f663f14f2220ef1a19dfcbb /core/math/vector2.h
parentd834789f475d431b10dcaef8804cd75dcd8b47dd (diff)
downloadredot-engine-a24c38d1a814f5bc4979b99d6652f4bf2f2982c7.tar.gz
Rename Vector2.tangent() to Vector2.orthogonal()
Diffstat (limited to 'core/math/vector2.h')
-rw-r--r--core/math/vector2.h2
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);
}