18template<
class T,
class ENABLE =
void>
104 return (width_ == size.width_ && height_ == size.height_);
115 return !(*
this == size);
128 T width_ =
static_cast<T
>(0);
129 T height_ =
static_cast<T
>(0);
145 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:80
bool operator==(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition: size_2d.hpp:102
void SetWidth(T width) noexcept
Sets the horizontal component of the size.
Definition: size_2d.hpp:70
Size2D() noexcept=default
Creates a default, empty size.
void SetHeight(T height) noexcept
Sets the vertical component of the size.
Definition: size_2d.hpp:90
T Width() const noexcept
Gets the horizontal component of the size.
Definition: size_2d.hpp:60
bool operator!=(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition: size_2d.hpp:113
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15
Point2D< int > Round(const Point2D< T > &rhs) noexcept
Round to an integer point.
Definition: point_2d.hpp:382