diff options
author | 2018-11-07 11:06:42 +0900 | |
---|---|---|
committer | 2018-11-07 11:06:42 +0900 | |
commit | 7550fadd26887ce59c6e0ca5320e6ec6fb61a72a (patch) | |
tree | 150eb9f7a729f1a90edea163590247ab3e2b2c76 /include/mapbox/geometry/line_string.hpp | |
parent | ae47635e56c4af4d816a76e5186e945768543679 (diff) |
add tbtnavi source
Diffstat (limited to 'include/mapbox/geometry/line_string.hpp')
-rw-r--r-- | include/mapbox/geometry/line_string.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mapbox/geometry/line_string.hpp b/include/mapbox/geometry/line_string.hpp new file mode 100644 index 0000000..6d811ce --- /dev/null +++ b/include/mapbox/geometry/line_string.hpp @@ -0,0 +1,21 @@ +#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 line_string : Cont<point<T> > +{ + using coordinate_type = T; + using point_type = point<T>; + using container_type = Cont<point_type>; + using container_type::container_type; +}; + +} // namespace geometry +} // namespace mapbox |