diff options
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/rect2.h | 2 | ||||
-rw-r--r-- | core/math/vector2.h | 2 |
2 files changed, 2 insertions, 2 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++; 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); } |