diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-06-23 21:14:04 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-06-23 21:42:44 +0200 |
| commit | 01f85a09a981eb6c8784d459f729d418c0dd19e3 (patch) | |
| tree | 7539008648c010ec5e188f5104ebc94e4ccb0690 /src/helpers/Vector2D.hpp | |
| parent | 69fae18e636ed154798c21ed5c1127672127c6ac (diff) | |
xwayland: send zero scaling to xwayland if enabled
Diffstat (limited to 'src/helpers/Vector2D.hpp')
| -rw-r--r-- | src/helpers/Vector2D.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp index f2943b28..1178f734 100644 --- a/src/helpers/Vector2D.hpp +++ b/src/helpers/Vector2D.hpp @@ -42,10 +42,10 @@ class Vector2D { Vector2D operator/(const Vector2D& a) const { return Vector2D(this->x / a.x, this->y / a.y); } - - double distance(const Vector2D& other); - Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()); + double distance(const Vector2D& other) const; - Vector2D floor(); + Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()) const; + + Vector2D floor() const; }; |
