From 6c05d6d3706bc2d3ebda1fed641dfa9c903100f3 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 15 Apr 2021 04:03:59 +0430 Subject: [PATCH] LibGfx: Add a Path::arc_to() helper ...That just uses elliptical_arc_to(). --- Userland/Libraries/LibGfx/Path.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibGfx/Path.h b/Userland/Libraries/LibGfx/Path.h index b9dd0b641d..52013ce7ff 100644 --- a/Userland/Libraries/LibGfx/Path.h +++ b/Userland/Libraries/LibGfx/Path.h @@ -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();