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
Notes: sideshowbarker 2024-07-19 07:32:24 +09:00

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