summaryrefslogtreecommitdiff
path: root/core/math/math_2d.cpp
diff options
context:
space:
mode:
authorBernhard Liebl <Bernhard.Liebl@gmx.org>2018-02-08 08:48:14 +0100
committerpoke1024 <poke1024@gmx.de>2018-03-07 21:10:31 +0100
commit9d7856620c5af8e1a5c3f81f921070728b6925d6 (patch)
tree9437c5911eb8cf8f50a3d8c3a1931945ab0d5418 /core/math/math_2d.cpp
parent900384a622c7f3094540a43670421469e4ee0b06 (diff)
Bring back Vector2.cross()
Diffstat (limited to 'core/math/math_2d.cpp')
-rw-r--r--core/math/math_2d.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/math/math_2d.cpp b/core/math/math_2d.cpp
index d2e4101999..3767d298a1 100644
--- a/core/math/math_2d.cpp
+++ b/core/math/math_2d.cpp
@@ -98,11 +98,6 @@ real_t Vector2::cross(const Vector2 &p_other) const {
return x * p_other.y - y * p_other.x;
}
-Vector2 Vector2::cross(real_t p_other) const {
-
- return Vector2(p_other * y, -p_other * x);
-}
-
Vector2 Vector2::floor() const {
return Vector2(Math::floor(x), Math::floor(y));