summaryrefslogtreecommitdiffstats
path: root/core/math/rect2.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/rect2.h
parentd834789f475d431b10dcaef8804cd75dcd8b47dd (diff)
downloadredot-engine-a24c38d1a814f5bc4979b99d6652f4bf2f2982c7.tar.gz
Rename Vector2.tangent() to Vector2.orthogonal()
Diffstat (limited to 'core/math/rect2.h')
-rw-r--r--core/math/rect2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h
index b1fe865ba5..ca8993d969 100644
--- a/core/math/rect2.h
+++ b/core/math/rect2.h
@@ -272,7 +272,7 @@ struct Rect2 {
}
//check inside
- Vector2 tg = r.tangent();
+ Vector2 tg = r.orthogonal();
float s = tg.dot(center) - tg.dot(a);
if (s < 0.0) {
side_plus++;