18 template <
class T,
class ENABLE =
void>
23 static_assert(IsNumeric<T>::value,
"CVB: Unsupported data type - must be numeric!");
27 class Size2D<T, typename EnableIfNumeric<T>::type> final
100 return (width_ == size.width_ && height_ == size.height_);
111 return !(*
this == size);
123 T width_ =
static_cast<T
>(0);
124 T height_ =
static_cast<T
>(0);
138 static_assert(IsNumeric<T>::value,
"CVB: Unsupported data type - must be numeric!");
Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle...
Definition size_2d.hpp:20
T Height() const noexcept
Gets the vertical component of the size.
Definition size_2d.hpp:77
bool operator==(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition size_2d.hpp:98
void SetWidth(T width) noexcept
Sets the horizontal component of the size.
Definition size_2d.hpp:67
Size2D() noexcept=default
Creates a default, empty size.
void SetHeight(T height) noexcept
Sets the vertical component of the size.
Definition size_2d.hpp:87
T Width() const noexcept
Gets the horizontal component of the size.
Definition size_2d.hpp:57
bool operator!=(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition size_2d.hpp:109
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
Point2D< int > Round(const Point2D< T > &rhs) noexcept
Round to an integer point.
Definition point_2d.hpp:371