Update coordinate_calculation.hpp

This commit is contained in:
Siarhei Fedartsou 2022-09-21 21:54:10 +02:00 committed by GitHub
parent 8390a9507e
commit f2a85cc59a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,7 +372,7 @@ bool areParallel(const iterator_type lhs_begin,
const auto slope_rhs = get_slope(null_island, rotated_difference_rhs); 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 // 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 // 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<Coordinate> &polygon); double computeArea(const std::vector<Coordinate> &polygon);