 |
Face Engine SDK
4.7.0
A face detection, recognition and tracking engine.
|
44 template<
typename Other>
53 template <
typename Other>
55 x =
static_cast<T
>(other.x);
56 y =
static_cast<T
>(other.y);
67 return x == other.x &&
76 return !(*
this == other);
85 return x > other.x &&
y > other.y;
94 return x >= other.x &&
y >= other.y;
103 return x < other.x &&
y < other.y;
112 return x <= other.x &&
y <= other.y;
bool operator!=(const Vector2 &other) const noexcept
Checks if two vectors are not equal.
Definition: Vector2.h:75
Vector2 operator-(void) const noexcept
Negates all elements.
Definition: Vector2.h:136
Vector2< T > & operator=(const Vector2< Other > &other) noexcept
Copies another vector.
Definition: Vector2.h:54
Vector2(const Vector2< Other > &other) noexcept
Copies another vector.
Definition: Vector2.h:45
Vector2 operator*(const Vector2 &rhs) const noexcept
Multiplies (per-element) two vectors.
Definition: Vector2.h:160
bool operator<=(const Vector2 &other) const noexcept
Checks if both coordinates are smaller or equal to respective coordinates of another vector.
Definition: Vector2.h:111
Generic 2D vector.
Definition: Vector2.h:11
Vector2< float > Point2f
Definition: Vector2.h:286
SDK namespace.
Definition: IAGSEstimator.h:8
Vector2< unsigned short > Point2us
Definition: Vector2.h:298
Vector2() noexcept
Initializes a vector with zeroes.
Definition: Vector2.h:25
T x
x coordinate.
Definition: Vector2.h:16
Vector2(T x_) noexcept
Initializes all elements with the same value.
Definition: Vector2.h:31
bool operator==(const Vector2 &other) const noexcept
Checks if two vectors are equal.
Definition: Vector2.h:66
Vector2 operator+(const Vector2 &rhs) const noexcept
Adds (per-element) two vectors.
Definition: Vector2.h:144
Vector2< int > Size
Definition: Vector2.h:301
Vector2 operator/(const Vector2 &rhs) const noexcept
Divides (per-element) two vectors.
Definition: Vector2.h:168
bool operator>(const Vector2 &other) const noexcept
Checks if both coordinates are greater then respective coordinates of another vector.
Definition: Vector2.h:84
Vector2< int > Point2i
Definition: Vector2.h:292
bool operator<(const Vector2 &other) const noexcept
Checks if both coordinates are smaller then respective coordinates of another vector.
Definition: Vector2.h:102
T y
y coordinate.
Definition: Vector2.h:17
T array[2]
Array for iteration.
Definition: Vector2.h:20
Vector2 & operator-=(const Vector2 &rhs) noexcept
Subtracts (per-element) two vectors.
Definition: Vector2.h:185
Vector2 & operator+=(const Vector2 &rhs) noexcept
Adds (per-element) two vectors.
Definition: Vector2.h:176
Vector2< double > Point2d
Definition: Vector2.h:289
bool operator>=(const Vector2 &other) const noexcept
Checks if both coordinates are greater or equal to respective coordinates of another vector.
Definition: Vector2.h:93
Vector2 & operator*=(const Vector2 &rhs) noexcept
Multiplies (per-element) two vectors.
Definition: Vector2.h:194
Vector2 & operator/=(const Vector2 &rhs) noexcept
Divides (per-element) two vectors.
Definition: Vector2.h:203
Vector2< unsigned int > Point2u
Definition: Vector2.h:295
T & operator[](int n) noexcept
Indexes the vector.
Definition: Vector2.h:119