summaryrefslogtreecommitdiff
path: root/src/mbgl/util/clip_lines.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/clip_lines.hpp')
-rw-r--r--src/mbgl/util/clip_lines.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mbgl/util/clip_lines.hpp b/src/mbgl/util/clip_lines.hpp
new file mode 100644
index 0000000000..6e49b48085
--- /dev/null
+++ b/src/mbgl/util/clip_lines.hpp
@@ -0,0 +1,19 @@
+#ifndef MBGL_UTIL_CLIP_LINES
+#define MBGL_UTIL_CLIP_LINES
+
+#include <map>
+#include <string>
+#include <vector>
+#include <mbgl/renderer/symbol_bucket.hpp>
+
+namespace mbgl {
+namespace util {
+
+
+std::vector<std::vector<Coordinate>> clipLines(const std::vector<std::vector<Coordinate>> &lines,
+ const int16_t x1, const int16_t y1, const int16_t x2, const int16_t y2);
+
+} // end namespace util
+} // end namespace mbgl
+
+#endif