aboutsummaryrefslogtreecommitdiff
path: root/problem.cpp
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-02 00:46:28 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-02 00:46:28 +0100
commitcbcc1513db57c2086fbfc469b3bb064975b297b6 (patch)
treead3df681657156808baaa28513bb7488a70de23c /problem.cpp
parentf59e5a6e0acede51daa9d3bf5e408ec370037d8d (diff)
downloadRobotique-Projet-cbcc1513db57c2086fbfc469b3bb064975b297b6.tar.gz
Robotique-Projet-cbcc1513db57c2086fbfc469b3bb064975b297b6.zip
Fix
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 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 ;
}