aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--geom.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/geom.hpp b/geom.hpp
index 9038f69..7b6ceb2 100644
--- a/geom.hpp
+++ b/geom.hpp
@@ -88,7 +88,7 @@ struct line {
vec d = p2 - p1;
a = d.y ;
b = -d.x ;
- c = - (p1.x * a + p2.x * b);
+ c = - (p1.x * a + p1.y * b);
}
bool on_line(vec p) const {