diff options
author | Jean Fabre-Monplaisir <jean-isaac-fm@live.fr> | 2015-02-02 01:14:28 +0100 |
---|---|---|
committer | Jean Fabre-Monplaisir <jean-isaac-fm@live.fr> | 2015-02-02 01:14:28 +0100 |
commit | a8909f1a5c0a3b3d712a0b7417f13c31cb57ddc2 (patch) | |
tree | 3844c356b0fe5303e522892697ed301296dfbab2 | |
parent | 9add551ebba5b0d8ae1b1ffba749550f625303d3 (diff) | |
download | Robotique-Projet-a8909f1a5c0a3b3d712a0b7417f13c31cb57ddc2.tar.gz Robotique-Projet-a8909f1a5c0a3b3d712a0b7417f13c31cb57ddc2.zip |
again line collision
-rw-r--r-- | problem.cpp | 2 |
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; } |