Closed ensconced closed 1 year ago
Hi, @ensconced ,
Arc
class has undocumented method arcSE(center, start, end, counterClockwise)
It constructs arc by center, start and end points
Maybe this method is what you are looking for?
ah brilliant, that works perfectly for my use-case! thank you
Issue closed
In an SVG path an arc is defined from these parameters:
(and the start position is implicit from the preceding element of the path)
It would be nice to be able to construct an Arc in flatten-js using this same set of parameters. I think in flatten-js we would only need one radius parameter, and
x-axis-rotation
would not be relevant since Arc is always circular. i.e. we could have something like this:arcFromSVGParameters(startPoint, endPoint, radius, largeArcFlag, sweepFlag)