arcTo

fun arcTo(oval: Rect, startAngle: Float, sweepAngle: Float, forceMoveTo: Boolean): Path

Appends arc to Path. Arc added is part of ellipse bounded by oval, from startAngle through sweepAngle. Both startAngle and sweepAngle are measured in degrees, where zero degrees is aligned with the positive x-axis, and positive sweeps extends arc clockwise.

arcTo() adds line connecting Path last Point to initial arc Point if forceMoveTo is false and Path is not empty. Otherwise, added contour begins with first point of arc. Angles greater than -360 and less than 360 are treated modulo 360.

Return

reference to Path

Parameters

oval

bounds of ellipse containing arc

startAngle

starting angle of arc in degrees

sweepAngle

sweep, in degrees. Positive is clockwise; treated modulo 360

forceMoveTo

true to start a new contour with arc

See also