vector: avoid min0 clamps without a max being invalid

This commit is contained in:
Vaxry 2024-02-05 22:37:24 +00:00
parent 8a6e428d32
commit 181f651de2

View file

@ -88,7 +88,7 @@ class Vector2D {
double distance(const Vector2D& other) 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 round() const;