internal: add a new monitor auto system

This commit is contained in:
vaxerski 2023-08-14 14:22:06 +02:00
parent a0cf890292
commit 13886a264f
6 changed files with 54 additions and 2 deletions

View file

@ -43,6 +43,14 @@ class Vector2D {
return Vector2D(this->x / a.x, this->y / a.y);
}
bool operator>(const Vector2D& a) const {
return this->x > a.x && this->y > a.y;
}
bool operator<(const Vector2D& a) const {
return this->x < a.x && this->y < a.y;
}
double distance(const Vector2D& other) const;
Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()) const;