diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-02 00:46:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-02 00:46:28 +0100 |
commit | cbcc1513db57c2086fbfc469b3bb064975b297b6 (patch) | |
tree | ad3df681657156808baaa28513bb7488a70de23c | |
parent | f59e5a6e0acede51daa9d3bf5e408ec370037d8d (diff) | |
download | Robotique-Projet-cbcc1513db57c2086fbfc469b3bb064975b297b6.tar.gz Robotique-Projet-cbcc1513db57c2086fbfc469b3bb064975b297b6.zip |
Fix
-rw-r--r-- | problem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/problem.cpp b/problem.cpp index 0651808..1437729 100644 --- a/problem.cpp +++ b/problem.cpp @@ -12,7 +12,7 @@ using namespace std; double hilare_a_mvt::length() { // returns length traveled by the car - if (is_arc) return domega * (center - from.pos()).norm(); + if (is_arc) return fabs(domega) * (center - from.pos()).norm(); return ds ; } |