Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ArcWelder/segmented_shape.cpp')
-rw-r--r--ArcWelder/segmented_shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArcWelder/segmented_shape.cpp b/ArcWelder/segmented_shape.cpp
index d9041eb..65995b4 100644
--- a/ArcWelder/segmented_shape.cpp
+++ b/ArcWelder/segmented_shape.cpp
@@ -410,7 +410,7 @@ bool arc::try_create_arc(
// We may be traveling in 3 space, calculate the arc_length of the spiral
if (start_point.z != end_point.z)
{
- test_arc_length = utilities::hypot(arc_length, end_point.z - start_point.z);
+ test_arc_length = utilities::hypot(test_arc_length, end_point.z - start_point.z);
}
}
difference = (test_arc_length - approximate_length) / approximate_length;