41 template <
typename Other>
50 template <
typename Other>
52 x =
static_cast<T
>(other.x);
53 y =
static_cast<T
>(other.y);
64 return x == other.x &&
y == other.y;
72 return !(*
this == other);
81 return x > other.x &&
y > other.y;
90 return x >= other.x &&
y >= other.y;
99 return x < other.x &&
y < other.y;
108 return x <= other.x &&
y <= other.y;
SDK namespace.
Definition IAGSEstimator.h:8
Vector2< float > Point2f
Definition Vector2.h:288
Vector2< unsigned int > Point2u
Definition Vector2.h:297
Vector2< int > Size
Definition Vector2.h:303
Vector2< double > Point2d
Definition Vector2.h:291
Vector2< int > Point2i
Definition Vector2.h:294
Vector2< unsigned short > Point2us
Definition Vector2.h:300
Generic 2D vector.
Definition Vector2.h:10
bool operator<=(const Vector2 &other) const noexcept
Checks if both coordinates are smaller or equal to respective coordinates of another vector.
Definition Vector2.h:107
Vector2 operator+(const Vector2 &rhs) const noexcept
Adds (per-element) two vectors.
Definition Vector2.h:146
Vector2 & operator-=(T rhs) noexcept
Subtracts (per-element) a constant to each element of the vector.
Definition Vector2.h:261
T x
x coordinate.
Definition Vector2.h:11
Vector2 operator-(const Vector2 &rhs) const noexcept
Subtracts (per-element) two vectors.
Definition Vector2.h:154
Vector2 operator/(const Vector2 &rhs) const noexcept
Divides (per-element) two vectors.
Definition Vector2.h:170
Vector2 & operator*=(T rhs) noexcept
Multiplies (per-element) a constant to each element of the vector.
Definition Vector2.h:271
Vector2 & operator+=(T rhs) noexcept
Adds (per-element) a constant to each element of the vector.
Definition Vector2.h:251
Vector2() noexcept
Initializes a vector with zeroes.
Definition Vector2.h:16
Vector2 operator*(const Vector2 &rhs) const noexcept
Multiplies (per-element) two vectors.
Definition Vector2.h:162
bool operator!=(const Vector2 &other) const noexcept
Checks if two vectors are not equal.
Definition Vector2.h:71
const T & operator[](int n) const noexcept
Indexes the vector.
Definition Vector2.h:127
T & operator[](int n) noexcept
Indexes the vector.
Definition Vector2.h:115
bool operator>(const Vector2 &other) const noexcept
Checks if both coordinates are greater then respective coordinates of another vector.
Definition Vector2.h:80
Vector2 & operator-=(const Vector2 &rhs) noexcept
Subtracts (per-element) two vectors.
Definition Vector2.h:187
Vector2(T x_, T y_) noexcept
Initializes elements with given value.
Definition Vector2.h:33
Vector2 operator-(T rhs) const noexcept
Subtracts (per-element) a constant to each element of the vector.
Definition Vector2.h:224
bool operator<(const Vector2 &other) const noexcept
Checks if both coordinates are smaller then respective coordinates of another vector.
Definition Vector2.h:98
Vector2 operator-(void) const noexcept
Negates all elements.
Definition Vector2.h:138
bool operator>=(const Vector2 &other) const noexcept
Checks if both coordinates are greater or equal to respective coordinates of another vector.
Definition Vector2.h:89
Vector2(T x_) noexcept
Initializes all elements with the same value.
Definition Vector2.h:24
Vector2 & operator+=(const Vector2 &rhs) noexcept
Adds (per-element) two vectors.
Definition Vector2.h:178
T y
y coordinate.
Definition Vector2.h:12
Vector2< T > & operator=(const Vector2< Other > &other) noexcept
Copies another vector.
Definition Vector2.h:51
bool operator==(const Vector2 &other) const noexcept
Checks if two vectors are equal.
Definition Vector2.h:63
Vector2 & operator/=(T rhs) noexcept
Divides (per-element) a constant to each element of the vector.
Definition Vector2.h:281
Vector2 & operator/=(const Vector2 &rhs) noexcept
Divides (per-element) two vectors.
Definition Vector2.h:205
Vector2 operator/(T rhs) const noexcept
Divides (per-element) a constant to each element of the vector.
Definition Vector2.h:242
Vector2 operator+(T rhs) const noexcept
Adds (per-element) a constant to each element of the vector.
Definition Vector2.h:215
Vector2 operator*(T rhs) const noexcept
Multiplies (per-element) a constant to each element of the vector.
Definition Vector2.h:233
Vector2 & operator*=(const Vector2 &rhs) noexcept
Multiplies (per-element) two vectors.
Definition Vector2.h:196