We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b78d42 commit e172e9cCopy full SHA for e172e9c
include/mapbox/geojsonvt/clip.hpp
@@ -112,7 +112,7 @@ class clipper {
112
const double ak = get<I>(a);
113
const double bk = get<I>(b);
114
115
- if (lineMetrics) segLen = std::hypot((b.x - a.x), (b.y - a.y));
+ if (lineMetrics) segLen = ::hypot((b.x - a.x), (b.y - a.y));
116
117
if (ak < k1) {
118
if (bk > k2) { // ---|-----|-->
include/mapbox/geojsonvt/convert.hpp
@@ -39,7 +39,7 @@ struct project {
39
for (size_t i = 0; i < len - 1; ++i) {
40
const auto& a = result[i];
41
const auto& b = result[i + 1];
42
- result.dist += std::hypot((b.x - a.x), (b.y - a.y));
+ result.dist += ::hypot((b.x - a.x), (b.y - a.y));
43
}
44
45
simplify(result, tolerance);
0 commit comments