abs not needed before quad (thx @SkaillZ)

This commit is contained in:
incredibleLeitman 2020-12-09 11:42:01 +01:00
parent f2c67df278
commit b000e93584

2
Line.h
View File

@ -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);
}