diff options
-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 ; } |