absellipse method
dynamic
absellipse(
- dynamic aX,
- dynamic aY,
- dynamic xRadius,
- dynamic yRadius,
- dynamic aStartAngle,
- dynamic aEndAngle,
- dynamic aClockwise,
- dynamic aRotation,
Implementation
absellipse(aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation) {
var curve = EllipseCurve(aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation);
if (curves.isNotEmpty) {
// if a previous curve is present, attempt to join
var firstPoint = curve.getPoint(0, null);
if (!firstPoint.equals(currentPoint)) {
lineTo(firstPoint.x, firstPoint.y);
}
}
curves.add(curve);
var lastPoint = curve.getPoint(1, null);
currentPoint.copy(lastPoint);
return this;
}