#pragma once #include namespace mapbox { namespace geometry { template struct box { using coordinate_type = T; 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