diff options
author | zmiao <miao.zhao@mapbox.com> | 2020-04-28 13:12:19 +0300 |
---|---|---|
committer | zmiao <miao.zhao@mapbox.com> | 2020-04-30 02:31:15 +0300 |
commit | 0fa485092ec2eff32d2c9c9ad93fbf8586acee06 (patch) | |
tree | 22370660af140394c50521eba25a633ca2610a10 /src/mbgl/util/geometry_util.cpp | |
parent | 4a54da881ff75cc6f034176cb7f249751739e66f (diff) | |
download | qtlocation-mapboxgl-0fa485092ec2eff32d2c9c9ad93fbf8586acee06.tar.gz |
Add support for polygon in distance expression
Diffstat (limited to 'src/mbgl/util/geometry_util.cpp')
-rw-r--r-- | src/mbgl/util/geometry_util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/util/geometry_util.cpp b/src/mbgl/util/geometry_util.cpp index 4a90c75582..5cade1eff8 100644 --- a/src/mbgl/util/geometry_util.cpp +++ b/src/mbgl/util/geometry_util.cpp @@ -157,9 +157,13 @@ template bool lineStringWithinPolygon(const LineString<int64_t>& line, const Pol template bool lineStringWithinPolygons(const LineString<int64_t>& line, const MultiPolygon<int64_t>& polygons); template void updateBBox(GeometryBBox<double>& bbox, const Point<double>& p); +template bool boxWithinBox(const GeometryBBox<double>& bbox1, const GeometryBBox<double>& bbox2); template bool segmentIntersectSegment(const Point<double>& a, const Point<double>& b, const Point<double>& c, const Point<double>& d); +template bool pointWithinPolygon(const Point<double>& point, + const Polygon<double>& polygon, + bool trueOnBoundary = false); } // namespace mbgl |