22 #include <olp/core/math/Vector.h>
100 template <
typename U>
103 template <
typename T>
104 template <
typename U>
107 template <
typename T>
110 template <
typename T>
111 template <
typename U>
116 template <
typename T>
118 return size_.x == T() || size_.y == T();
121 template <
typename T>
126 template <
typename T>
131 template <
typename T>
133 return lhs.width() == rhs.width() && lhs.height() == rhs.height();
136 template <
typename T>
137 bool operator!=(
const Size2<T>& lhs,
const Size2<T>& rhs) {
138 return !(lhs == rhs);
Represents the 2D size.
Definition: Size.h:28
T Value
An alias for the value type.
Definition: Size.h:31
Value Width() const
Gets the width of the Size2 object.
Definition: Size.h:122
Value Height() const
Gets the height of the Size2 object.
Definition: Size.h:127
bool empty() const
Checks whether the size is empty.
Definition: Size.h:117
Size2()
Creates an uninitialized Size2 instance.
Definition: Size.h:97
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Represents 2D vectors and points.
Definition: Vector.h:27