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

LibGfx: Add a Path::arc_to() helper

...That just uses elliptical_arc_to().
This commit is contained in:
AnotherTest 2021-04-15 04:03:59 +04:30 committed by Andreas Kling
parent 598a6d46c7
commit 6c05d6d370

View file

@ -155,6 +155,10 @@ public:
}
void elliptical_arc_to(const FloatPoint& point, const FloatPoint& radii, double x_axis_rotation, bool large_arc, bool sweep);
void arc_to(const FloatPoint& point, float radius, bool large_arc, bool sweep)
{
elliptical_arc_to(point, { radius, radius }, 0, large_arc, sweep);
}
void close();
void close_all_subpaths();