18template<
class T,
class ENABLE =
void>
103 return (width_ == size.width_ && height_ == size.height_);
114 return !(*
this == size);
127 T width_ =
static_cast<T
>(0);
128 T height_ =
static_cast<T
>(0);
144 return Size2D<int>(
static_cast<int>(std::round(rhs.Width())),
static_cast<int>(std::round(rhs.Height())));
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:79
bool operator==(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition: size_2d.hpp:101
void SetWidth(T width) noexcept
Sets the horizontal component of the size.
Definition: size_2d.hpp:69
Size2D() noexcept=default
Creates a default, empty size.
void SetHeight(T height) noexcept
Sets the vertical component of the size.
Definition: size_2d.hpp:89
T Width() const noexcept
Gets the horizontal component of the size.
Definition: size_2d.hpp:59
bool operator!=(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition: size_2d.hpp:112
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24
Point2D< int > Round(const Point2D< T > &rhs) noexcept
Round to an integer point.
Definition: point_2d.hpp:380