1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibGfx: Add FloatPoint::to_int_point()

This commit is contained in:
Andreas Kling 2020-04-16 21:11:13 +02:00
parent 0d93e249c3
commit ecd900b4b4

View file

@ -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 };