toCubic method
Converts this segment to a CubicSegment.
This method is used for morphing.
The algrithoms are from https://github.com/thednp/svg-path-commander 2.0.2
Implementation
@override
CubicSegment toCubic(Offset start) {
final sweepAngle = endAngle - startAngle;
return ArcToPointSegment(
end: getArcPoint(oval, endAngle),
radius: Radius.elliptical(oval.width / 2, oval.height / 2),
rotation: 0,
largeArc: sweepAngle.abs() % (pi * 2) > pi,
clockwise: sweepAngle >= 0,
tag: tag,
).toCubic(start);
}