![]()  | 
  
    Face Engine SDK
    5.8.0
    
   A face detection, recognition and tracking engine. 
   | 
 
Generic 2D vector. More...
#include <Vector2.h>
Public Member Functions | |
| Vector2 () noexcept | |
| Initializes a vector with zeroes.  | |
| Vector2 (T x_) noexcept | |
| Initializes all elements with the same value.  More... | |
| Vector2 (T x_, T y_) noexcept | |
| Initializes elements with given value.  More... | |
| template<typename Other > | |
| Vector2 (const Vector2< Other > &other) noexcept | |
| Copies another vector.  More... | |
| template<typename Other > | |
| Vector2< T > & | operator= (const Vector2< Other > &other) noexcept | 
| Copies another vector.  More... | |
| bool | operator== (const Vector2 &other) const noexcept | 
| Checks if two vectors are equal.  More... | |
| bool | operator!= (const Vector2 &other) const noexcept | 
| Checks if two vectors are not equal.  More... | |
| bool | operator> (const Vector2 &other) const noexcept | 
| Checks if both coordinates are greater then respective coordinates of another vector.  More... | |
| bool | operator>= (const Vector2 &other) const noexcept | 
| Checks if both coordinates are greater or equal to respective coordinates of another vector.  More... | |
| bool | operator< (const Vector2 &other) const noexcept | 
| Checks if both coordinates are smaller then respective coordinates of another vector.  More... | |
| bool | operator<= (const Vector2 &other) const noexcept | 
| Checks if both coordinates are smaller or equal to respective coordinates of another vector.  More... | |
| T & | operator[] (int n) noexcept | 
| Indexes the vector.  More... | |
| const T & | operator[] (int n) const noexcept | 
| Indexes the vector.  More... | |
| Vector2 | operator- (void) const noexcept | 
| Negates all elements.  More... | |
| Vector2 | operator+ (const Vector2 &rhs) const noexcept | 
| Adds (per-element) two vectors.  More... | |
| Vector2 | operator- (const Vector2 &rhs) const noexcept | 
| Subtracts (per-element) two vectors.  More... | |
| Vector2 | operator* (const Vector2 &rhs) const noexcept | 
| Multiplies (per-element) two vectors.  More... | |
| Vector2 | operator/ (const Vector2 &rhs) const noexcept | 
| Divides (per-element) two vectors.  More... | |
| Vector2 & | operator+= (const Vector2 &rhs) noexcept | 
| Adds (per-element) two vectors.  More... | |
| Vector2 & | operator-= (const Vector2 &rhs) noexcept | 
| Subtracts (per-element) two vectors.  More... | |
| Vector2 & | operator*= (const Vector2 &rhs) noexcept | 
| Multiplies (per-element) two vectors.  More... | |
| Vector2 & | operator/= (const Vector2 &rhs) noexcept | 
| Divides (per-element) two vectors.  More... | |
| Vector2 | operator+ (T rhs) const noexcept | 
| Adds (per-element) a constant to each element of the vector.  More... | |
| Vector2 | operator- (T rhs) const noexcept | 
| Subtracts (per-element) a constant to each element of the vector.  More... | |
| Vector2 | operator* (T rhs) const noexcept | 
| Multiplies (per-element) a constant to each element of the vector.  More... | |
| Vector2 | operator/ (T rhs) const noexcept | 
| Divides (per-element) a constant to each element of the vector.  More... | |
| Vector2 & | operator+= (T rhs) noexcept | 
| Adds (per-element) a constant to each element of the vector.  More... | |
| Vector2 & | operator-= (T rhs) noexcept | 
| Subtracts (per-element) a constant to each element of the vector.  More... | |
| Vector2 & | operator*= (T rhs) noexcept | 
| Multiplies (per-element) a constant to each element of the vector.  More... | |
| Vector2 & | operator/= (T rhs) noexcept | 
| Divides (per-element) a constant to each element of the vector.  More... | |
Public Attributes | |
| T | x | 
| x coordinate.  | |
| T | y | 
| y coordinate.  | |
Generic 2D vector.
| T | any POD numeric type. | 
      
  | 
  inlineexplicitnoexcept | 
Initializes all elements with the same value.
| [in] | x_ | value to initialize with. | 
      
  | 
  inlinenoexcept | 
Initializes elements with given value.
| [in] | x_ | x coordinate value. | 
| [in] | y_ | y coordinate value. | 
      
  | 
  inlinenoexcept | 
Copies another vector.
| [in] | other | another vector. | 
      
  | 
  inlinenoexcept | 
Checks if two vectors are not equal.
| [in] | other | vector to check against. | 
      
  | 
  inlinenoexcept | 
Multiplies (per-element) two vectors.
| [in] | rhs | vector to multiply by. | 
      
  | 
  inlinenoexcept | 
Multiplies (per-element) a constant to each element of the vector.
| [in] | rhs | value to multiply by. | 
      
  | 
  inlinenoexcept | 
Multiplies (per-element) two vectors.
| [in] | rhs | vector to multiply by. | 
      
  | 
  inlinenoexcept | 
Multiplies (per-element) a constant to each element of the vector.
| [in] | rhs | value to multiply by. | 
      
  | 
  inlinenoexcept | 
Adds (per-element) two vectors.
| [in] | rhs | vector to add. | 
      
  | 
  inlinenoexcept | 
Adds (per-element) a constant to each element of the vector.
| [in] | rhs | value to add. | 
      
  | 
  inlinenoexcept | 
Adds (per-element) two vectors.
| [in] | rhs | vector to add. | 
      
  | 
  inlinenoexcept | 
Adds (per-element) a constant to each element of the vector.
| [in] | rhs | value to add. | 
      
  | 
  inlinenoexcept | 
Negates all elements.
      
  | 
  inlinenoexcept | 
Subtracts (per-element) two vectors.
| [in] | rhs | vector to subtract. | 
      
  | 
  inlinenoexcept | 
Subtracts (per-element) a constant to each element of the vector.
| [in] | rhs | value to subtract. | 
      
  | 
  inlinenoexcept | 
Subtracts (per-element) two vectors.
| [in] | rhs | vector to subtract. | 
      
  | 
  inlinenoexcept | 
Subtracts (per-element) a constant to each element of the vector.
| [in] | rhs | value to subtract. | 
      
  | 
  inlinenoexcept | 
Divides (per-element) two vectors.
| [in] | rhs | vector to divide by. | 
      
  | 
  inlinenoexcept | 
Divides (per-element) a constant to each element of the vector.
| [in] | rhs | value to divide by. | 
      
  | 
  inlinenoexcept | 
Divides (per-element) two vectors.
| [in] | rhs | vector to divide by. | 
      
  | 
  inlinenoexcept | 
Divides (per-element) a constant to each element of the vector.
| [in] | rhs | value to divide by. | 
      
  | 
  inlinenoexcept | 
Checks if both coordinates are smaller then respective coordinates of another vector.
| [in] | other | vector to check against. | 
      
  | 
  inlinenoexcept | 
Checks if both coordinates are smaller or equal to respective coordinates of another vector.
| [in] | other | vector to check against. | 
      
  | 
  inlinenoexcept | 
Copies another vector.
| [in] | other | another vector. | 
      
  | 
  inlinenoexcept | 
Checks if two vectors are equal.
| [in] | other | vector to check against. | 
      
  | 
  inlinenoexcept | 
Checks if both coordinates are greater then respective coordinates of another vector.
| [in] | other | vector to check against. | 
      
  | 
  inlinenoexcept | 
Checks if both coordinates are greater or equal to respective coordinates of another vector.
| [in] | other | vector to check against. | 
      
  | 
  inlinenoexcept | 
Indexes the vector.
| [in] | n | element index. | 
      
  | 
  inlinenoexcept | 
Indexes the vector.
| [in] | n | element index. |