summaryrefslogtreecommitdiffstats
path: root/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/polygon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'demo3/vertical/tbtnavi_demo/include/mapbox/geometry/polygon.hpp')
-rw-r--r--demo3/vertical/tbtnavi_demo/include/mapbox/geometry/polygon.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/polygon.hpp b/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/polygon.hpp
new file mode 100644
index 0000000..99a66aa
--- /dev/null
+++ b/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/polygon.hpp
@@ -0,0 +1,31 @@
+#pragma once
+
+// mapbox
+#include <mapbox/geometry/point.hpp>
+
+// stl
+#include <vector>
+
+namespace mapbox {
+namespace geometry {
+
+template <typename T, template <typename...> class Cont = std::vector>
+struct linear_ring : Cont<point<T>>
+{
+ using coordinate_type = T;
+ using point_type = point<T>;
+ using container_type = Cont<point_type>;
+ using container_type::container_type;
+};
+
+template <typename T, template <typename...> class Cont = std::vector>
+struct polygon : Cont<linear_ring<T>>
+{
+ using coordinate_type = T;
+ using linear_ring_type = linear_ring<T>;
+ using container_type = Cont<linear_ring_type>;
+ using container_type::container_type;
+};
+
+} // namespace geometry
+} // namespace mapbox