arcToPoint method
Draws an arc from the current point to a given point.
The arc has radius
and is tangent to the line from the current point to
(endX
, endY
).
If relativeMoveTo
is true, the current point is moved to the endpoint of
the arc.
See also:
- Path.arcToPoint, the method
Implementation
Graphics arcToPoint(
double endX,
double endY,
double radius, [
double rotation = 0.0,
bool largeArc = false,
bool clockwise = true,
bool relativeMoveTo = false,
]) {
if (radius == 0) {
return this;
}
if (relativeMoveTo) {
_path!.arcToPoint(
Offset(endX, endY),
radius: Radius.circular(radius),
clockwise: clockwise,
largeArc: largeArc,
rotation: rotation,
);
} else {
_path!.relativeArcToPoint(
Offset(endX, endY),
radius: Radius.circular(radius),
clockwise: clockwise,
largeArc: largeArc,
rotation: rotation,
);
}
return this;
}