diff --git a/Line.h b/Line.h index 8ff77cb..6f74096 100644 --- a/Line.h +++ b/Line.h @@ -58,7 +58,7 @@ public: float b = to().x() - from().x(); float c = from().x() * to().y() - to().x() * from().y(); - float d = abs(a * other.x() + b * other.y() + c); + float d = a * other.x() + b * other.y() + c; return (d * d) / (a * a + b * b); }