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, Vertex>
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, Vertex > const &b)
Output stream operator for box<T> for human-readable formatting.