aboutsummaryrefslogtreecommitdiff
path: root/problem.cpp
diff options
context:
space:
mode:
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 ;
}