From b000e935841bde362ac9b8f29b0c9e614354e132 Mon Sep 17 00:00:00 2001 From: incredibleLeitman Date: Wed, 9 Dec 2020 11:42:01 +0100 Subject: [PATCH] abs not needed before quad (thx @SkaillZ) --- Line.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }