#pragma once #include "search.hpp" #include #include namespace floormat::Search { template struct bbox { static_assert(std::is_arithmetic_v); VectorTypeFor<2, T> min, max; constexpr bool operator==(const bbox&) const = default; template requires std::is_arithmetic_v explicit constexpr operator bbox() const { using Vec = VectorTypeFor<2, U>; return bbox{ Vec(min), Vec(max) }; } }; } // namespace floormat::Search