aboutsummaryrefslogtreecommitdiffstats
path: root/problem.hpp
diff options
context:
space:
mode:
authorJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-01 19:04:55 +0100
committerJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-01 19:04:55 +0100
commit2cb65f6726bbdecdc57b1544fe11fa6c586783dc (patch)
treeefd18989407339eed5cca0092188294fbf2e0046 /problem.hpp
parente95dc022cdd0a22f1e65e9500c73b59a2fc3ea2c (diff)
downloadRobotique-Projet-2cb65f6726bbdecdc57b1544fe11fa6c586783dc.tar.gz
Robotique-Projet-2cb65f6726bbdecdc57b1544fe11fa6c586783dc.zip
begin detection collision
Diffstat (limited to 'problem.hpp')
-rw-r--r--problem.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/problem.hpp b/problem.hpp
index a41e47a..3fc3054 100644
--- a/problem.hpp
+++ b/problem.hpp
@@ -30,6 +30,9 @@ struct hilare_a { // System A
vec pos_trolley() const {
return pos() + param->l * dir_trolley();
}
+
+ bool intersects(const obstacle &o) const; // intersects an obstacle ?
+
};
struct problem {
@@ -63,9 +66,10 @@ struct hilare_a_mvt {
double ds; // longueur par
double length(); // length of a movement
+
+ bool intersects(const obstacle &o) const; // intersects an obstacle ?
- bool intersects(const obstacle& o) const; // intersects an obstacle ?
- bool intersects(const problem &p) const; // intersects any obstacle on the map ?
+ bool intersects(const problem &p) const; // intersects any obstacle on the map ?
};
struct solution {