aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-02 00:55:43 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-02 00:55:43 +0100
commit1045767e8d7703e5c1cf0bcc316d45fe953afb14 (patch)
treecb42d3d81418823998bcb1641737fe6170bf113c
parent2a0f0f2fcde7ee267e1cfb01938bfd6a8f6e5095 (diff)
downloadRobotique-Projet-1045767e8d7703e5c1cf0bcc316d45fe953afb14.tar.gz
Robotique-Projet-1045767e8d7703e5c1cf0bcc316d45fe953afb14.zip
Real fix.
-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 {