Shapes
GIS made easy, a lightweight header-only planar geometry library for Modern C++
polygon.hpp
1 #pragma once
2 
3 #include <ciso646>
4 #include <simo/geom/detail/polygon.hpp>
5 
6 namespace simo
7 {
8 namespace shapes
9 {
10 
11 template <class T = double>
12 using polygon_t = basic_polygon<linearring_t<T>>;
13 
14 template <class T = double>
15 using polygon_z_t = basic_polygon<linearring_z_t<T>>;
16 
17 template <class T = double>
18 using polygon_m_t = basic_polygon<linearring_m_t<T>>;
19 
20 template <class T = double>
21 using polygon_zm_t = basic_polygon<linearring_zm_t<T>>;
22 
23 using polygon = polygon_t<double>;
24 using polygon_z = polygon_z_t<double>;
25 using polygon_m = polygon_m_t<double>;
26 using polygon_zm = polygon_zm_t<double>;
27 
28 using Polygon = polygon_t<double>;
29 using PolygonZ = polygon_z_t<double>;
30 using PolygonM = polygon_m_t<double>;
31 using PolygonZM = polygon_zm_t<double>;
32 
33 } // namespace shapes
34 } // namespace simo