18 template<
class T,
class ENABLE =
void>
40 Size2D() noexcept = default;
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())));
T Height() const noexcept
Gets the vertical component of the size.
Definition: size_2d.hpp:79
Size2D() noexcept=default
Creates a default, empty size.
Point2D< int > Round(const Point2D< T > &rhs) noexcept
Round to an integer point.
Definition: point_2d.hpp:380
Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle...
Definition: size_2d.hpp:19
void SetWidth(T width) noexcept
Sets the horizontal component of the size.
Definition: size_2d.hpp:69
Root namespace for the Image Manager interface.
Definition: version.hpp:11
bool operator!=(const Size2D< T > &size) const noexcept
Compares to an other size.
Definition: size_2d.hpp:112
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:101
void SetHeight(T height) noexcept
Sets the vertical component of the size.
Definition: size_2d.hpp:89