diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-06 16:31:25 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-06 16:31:25 +0900 |
commit | 9ee98a06160ee2b234e92db70eb18e128fc76e5d (patch) | |
tree | d144be711339162d8fb8662ac868cc3677318072 /include/mapbox/geometry/point.hpp | |
parent | 61a91b68c0c895714ea8d612fc752ad4b5cf56ef (diff) |
add hubtbtsandbox/zheng_wenlong/hubtbt
Diffstat (limited to 'include/mapbox/geometry/point.hpp')
-rw-r--r-- | include/mapbox/geometry/point.hpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/include/mapbox/geometry/point.hpp b/include/mapbox/geometry/point.hpp deleted file mode 100644 index 0cba499..0000000 --- a/include/mapbox/geometry/point.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -namespace mapbox { -namespace geometry { - -template <typename T> -struct point -{ - using coordinate_type = T; - - constexpr point() - : x(), y() - {} - constexpr point(T x_, T y_) - : x(x_), y(y_) - {} - - T x; - T y; -}; - -template <typename T> -constexpr bool operator==(point<T> const& lhs, point<T> const& rhs) -{ - return lhs.x == rhs.x && lhs.y == rhs.y; -} - -template <typename T> -constexpr bool operator!=(point<T> const& lhs, point<T> const& rhs) -{ - return !(lhs == rhs); -} - -} // namespace geometry -} // namespace mapbox |