mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibGfx: Add FloatPoint::to_int_point()
This commit is contained in:
parent
0d93e249c3
commit
ecd900b4b4
Notes:
sideshowbarker
2024-07-19 07:32:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ecd900b4b4d
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ public:
|
|||
set_y(value);
|
||||
}
|
||||
|
||||
Point to_int_point() const { return Point(x(), y()); }
|
||||
|
||||
private:
|
||||
float m_x { 0 };
|
||||
float m_y { 0 };
|
||||
|
|
Loading…
Add table
Reference in a new issue