Template Class bounding_box

Inheritance Relationships

Base Type

Class Documentation

template<typename TCoord>
class bounding_box : public rcppsw::er::client<bounding_box<TCoord>>

Mathematical abstraction of the 3D bounding box of an object.

Public Types

using coord_type = TCoord
using coord_value_type = typename coord_type::value_type

Public Functions

bounding_box(bounding_box&&) = default
bounding_box(const bounding_box&) = default
inline explicit bounding_box(const coord_type &dims)
inline bounding_box(const coord_type &dims, const coord_type &anchor)
~bounding_box(void) override = default
inline const coord_type &anchor3D(void) const
inline coord_type center3D(void) const
inline const coord_type &dims3D(void) const
bounding_box &operator=(bounding_box&&) = default
bounding_box &operator=(const bounding_box&) = default
inline void update(const coord_type &anchor)
inline coord_value_type xsize(void) const
inline rmath::range<coord_value_type> xspan(void) const
inline coord_value_type ysize(void) const
inline rmath::range<coord_value_type> yspan(void) const
inline coord_value_type zsize(void) const
inline rmath::range<coord_value_type> zspan(void) const