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/box.hpp | |
parent | 61a91b68c0c895714ea8d612fc752ad4b5cf56ef (diff) |
add hubtbtsandbox/zheng_wenlong/hubtbt
Diffstat (limited to 'include/mapbox/geometry/box.hpp')
-rw-r--r-- | include/mapbox/geometry/box.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/mapbox/geometry/box.hpp b/include/mapbox/geometry/box.hpp deleted file mode 100644 index bf81b70..0000000 --- a/include/mapbox/geometry/box.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <mapbox/geometry/point.hpp> - -namespace mapbox { -namespace geometry { - -template <typename T> -struct box -{ - using point_type = point<T>; - - constexpr box(point_type const& min_, point_type const& max_) - : min(min_), max(max_) - {} - - point_type min; - point_type max; -}; - -template <typename T> -constexpr bool operator==(box<T> const& lhs, box<T> const& rhs) -{ - return lhs.min == rhs.min && lhs.max == rhs.max; -} - -template <typename T> -constexpr bool operator!=(box<T> const& lhs, box<T> const& rhs) -{ - return lhs.min != rhs.min || lhs.max != rhs.max; -} - -} // namespace geometry -} // namespace mapbox |