mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:45:58 +01:00
vector: avoid min0 clamps without a max being invalid
This commit is contained in:
parent
8a6e428d32
commit
181f651de2
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class Vector2D {
|
||||||
|
|
||||||
double distance(const Vector2D& other) const;
|
double distance(const Vector2D& other) const;
|
||||||
double size() const;
|
double size() const;
|
||||||
Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()) const;
|
Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D{-1, -1}) const;
|
||||||
|
|
||||||
Vector2D floor() const;
|
Vector2D floor() const;
|
||||||
Vector2D round() const;
|
Vector2D round() const;
|
||||||
|
|
Loading…
Reference in a new issue