From a24c38d1a814f5bc4979b99d6652f4bf2f2982c7 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sun, 6 Dec 2020 18:16:06 +0000 Subject: Rename Vector2.tangent() to Vector2.orthogonal() --- core/math/vector2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math/vector2.h') 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); } -- cgit v1.2.3