abs not needed before quad (thx @SkaillZ)
This commit is contained in:
parent
f2c67df278
commit
b000e93584
2
Line.h
2
Line.h
@ -58,7 +58,7 @@ public:
|
|||||||
float b = to().x() - from().x();
|
float b = to().x() - from().x();
|
||||||
float c = from().x() * to().y() - to().x() * from().y();
|
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);
|
return (d * d) / (a * a + b * b);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user