From f2a85cc59a3de3b8d1cb78a0ceede477e23b9c4a Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Wed, 21 Sep 2022 21:54:10 +0200 Subject: [PATCH] Update coordinate_calculation.hpp --- include/util/coordinate_calculation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/coordinate_calculation.hpp b/include/util/coordinate_calculation.hpp index 603573adf..959a74107 100644 --- a/include/util/coordinate_calculation.hpp +++ b/include/util/coordinate_calculation.hpp @@ -372,7 +372,7 @@ bool areParallel(const iterator_type lhs_begin, const auto slope_rhs = get_slope(null_island, rotated_difference_rhs); // the left hand side has a slope of `0` after the rotation. We can check the slope of the right // hand side to ensure we only considering slight slopes - return std::fabs(slope_rhs) < 0.20; // twenty percent incline at the most + return std::abs(slope_rhs) < 0.20; // twenty percent incline at the most } double computeArea(const std::vector &polygon);