1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:57:34 +00:00

LibGfx: Add method for calculating square aspect ratio end point

This commit is contained in:
Zyper 2021-08-24 23:39:07 +02:00 committed by Brian Gianforcaro
parent 88a31f3bac
commit 12e76bb3df
2 changed files with 13 additions and 0 deletions

View file

@ -231,6 +231,8 @@ public:
return { AK::abs(dx_relative_to(other)), AK::abs(dy_relative_to(other)) };
}
[[nodiscard]] Point end_point_for_square_aspect_ratio(Point const&) const;
template<typename U>
[[nodiscard]] Point<U> to_type() const
{