aboutsummaryrefslogtreecommitdiffstats
path: root/problem.cpp
diff options
context:
space:
mode:
authorJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-02 01:14:28 +0100
committerJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-02 01:14:28 +0100
commita8909f1a5c0a3b3d712a0b7417f13c31cb57ddc2 (patch)
tree3844c356b0fe5303e522892697ed301296dfbab2 /problem.cpp
parent9add551ebba5b0d8ae1b1ffba749550f625303d3 (diff)
downloadRobotique-Projet-a8909f1a5c0a3b3d712a0b7417f13c31cb57ddc2.tar.gz
Robotique-Projet-a8909f1a5c0a3b3d712a0b7417f13c31cb57ddc2.zip
again line collision
Diffstat (limited to 'problem.cpp')
-rw-r--r--problem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/problem.cpp b/problem.cpp
index 34469c7..664afb3 100644
--- a/problem.cpp
+++ b/problem.cpp
@@ -66,7 +66,7 @@ bool hilare_a_mvt::intersects(const obstacle &o) const {
return false;
}
- if (o.c.r >= segment(from.pos(),to.pos).dist(o.c.c))return true ;
+ if (o.c.r >= segment(from.pos(),to.pos()).dist(o.c.c))return true ;
return false;
}