diff --git a/Userland/Libraries/LibGfx/Point.h b/Userland/Libraries/LibGfx/Point.h index 67c3ce89b8..606a4162c9 100644 --- a/Userland/Libraries/LibGfx/Point.h +++ b/Userland/Libraries/LibGfx/Point.h @@ -247,6 +247,13 @@ public: return Point(ceil(x()), ceil(y())); } + template + requires FloatingPoint + [[nodiscard]] Point to_floored() const + { + return Point(AK::floor(x()), AK::floor(y())); + } + [[nodiscard]] DeprecatedString to_deprecated_string() const; private: