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:
parent
88a31f3bac
commit
12e76bb3df
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue