Box class#
-
template<class value_t, std::size_t dim_>
class Box# Define a box in multi dimensions.
A box is defined by its minimum and maximum corners.
- Template Parameters:
value_t – The type of the box corners.
dim_ – The dimension of the box
Public Functions
-
inline Box(const point_t &min_corner, const point_t &max_corner)#
Construction of a bounded box.
- Parameters:
min_corner – The vertex with the minimum coordinates
max_corner – The vertex with the maximum coordinates
-
inline const point_t &min_corner() const#
Return the min corner of the box.
-
inline point_t &min_corner()#
Return the min corner of the box.
-
inline const point_t &max_corner() const#
Return the max corner of the box.
-
inline point_t &max_corner()#
Return the max corner of the box.
-
inline auto length() const#
Return the length of the box.
-
inline bool is_valid() const#
Check if the box is valid.