aboutsummaryrefslogtreecommitdiff
path: root/problem.cpp
diff options
context:
space:
mode:
authorJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-02 01:12:53 +0100
committerJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-02 01:12:53 +0100
commit9add551ebba5b0d8ae1b1ffba749550f625303d3 (patch)
tree3f4def82aa7ae7670809d3bb2528070175806513 /problem.cpp
parent8bc5afb4114e94e31efc7534a0e51952e551a57f (diff)
downloadRobotique-Projet-9add551ebba5b0d8ae1b1ffba749550f625303d3.tar.gz
Robotique-Projet-9add551ebba5b0d8ae1b1ffba749550f625303d3.zip
line collisions
Diffstat (limited to 'problem.cpp')
-rw-r--r--problem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/problem.cpp b/problem.cpp
index 5f774fd..34469c7 100644
--- a/problem.cpp
+++ b/problem.cpp
@@ -66,6 +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 ;
return false;
}