From 18dd9c2d2d8f56d8eeb4b9caf83f38acc620cdda Mon Sep 17 00:00:00 2001 From: reyhammer Date: Mon, 23 Nov 2020 11:59:50 -0300 Subject: [PATCH] Fix TPoint::distanceFrom() calling TPoint::getLength() instead of TPoint::length() (#1116) --- src/framework/util/point.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/util/point.h b/src/framework/util/point.h index e9fc6557..41512924 100644 --- a/src/framework/util/point.h +++ b/src/framework/util/point.h @@ -77,7 +77,7 @@ public: T manhattanLength() const { return std::abs(x) + std::abs(y); } float distanceFrom(const TPoint& other) const { - return TPoint(x - other.x, y - other.y).getLength(); + return TPoint(x - other.x, y - other.y).length(); } T x, y;