mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
LibGfx: Add a Path::arc_to() helper
...That just uses elliptical_arc_to().
This commit is contained in:
parent
598a6d46c7
commit
6c05d6d370
1 changed files with 4 additions and 0 deletions
|
@ -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 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();
|
||||||
void close_all_subpaths();
|
void close_all_subpaths();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue