Fix TPoint::distanceFrom() calling TPoint::getLength() instead of TPoint::length() (#1116)

This commit is contained in:
reyhammer
2020-11-23 11:59:50 -03:00
committed by GitHub
parent 72cc4b2fb0
commit 18dd9c2d2d

View File

@@ -77,7 +77,7 @@ public:
T manhattanLength() const { return std::abs(x) + std::abs(y); }
float distanceFrom(const TPoint<T>& other) const {
return TPoint<T>(x - other.x, y - other.y).getLength();
return TPoint<T>(x - other.x, y - other.y).length();
}
T x, y;