34template <
typename T,
typename Vertex = cuspatial::vec_2d<T>>
35class alignas(sizeof(Vertex))
box {
45 friend std::ostream&
operator<<(std::ostream& os, cuspatial::box<T>
const& b)
47 return os <<
"{" << b.v1 <<
", " << b.v2 <<
"}";
53box(vec_2d<T> a, vec_2d<T> b) -> box<T, vec_2d<T>>;
A generic axis-aligned box type.
friend std::ostream & operator<<(std::ostream &os, cuspatial::box< T > const &b)
Output stream operator for vec_2d<T> for human-readable formatting.