From 5d98ec36d66db8897f7e3e5120b43c50f379baea Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Wed, 14 Nov 2018 12:50:56 +0900 Subject: Add tbtnavi for vertical mode Add tbtnavi for vertical mode. This application use waltham transmitter send video to horizontal mode. Change-Id: Icc8bb14f9c83439d90f28d0960e435a43a5e5245 Signed-off-by: zheng_wenlong --- .../tbtnavi_demo/include/mapbox/geometry/box.hpp | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 demo3/vertical/tbtnavi_demo/include/mapbox/geometry/box.hpp (limited to 'demo3/vertical/tbtnavi_demo/include/mapbox/geometry/box.hpp') diff --git a/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/box.hpp b/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/box.hpp new file mode 100644 index 0000000..bf81b70 --- /dev/null +++ b/demo3/vertical/tbtnavi_demo/include/mapbox/geometry/box.hpp @@ -0,0 +1,34 @@ +#pragma once + +#include + +namespace mapbox { +namespace geometry { + +template +struct box +{ + using point_type = point; + + constexpr box(point_type const& min_, point_type const& max_) + : min(min_), max(max_) + {} + + point_type min; + point_type max; +}; + +template +constexpr bool operator==(box const& lhs, box const& rhs) +{ + return lhs.min == rhs.min && lhs.max == rhs.max; +} + +template +constexpr bool operator!=(box const& lhs, box const& rhs) +{ + return lhs.min != rhs.min || lhs.max != rhs.max; +} + +} // namespace geometry +} // namespace mapbox -- cgit 1.2.3-korg