Android Graphics Utilities / it.czerwinski.android.graphics / AdvancedPath / arcTo
arcTo
open fun arcTo(cx:
Float
= 0f, cy:
Float
= 0f, radius:
Float
, startAngle:
Float
, sweepAngle:
Float
, forceMoveTo:
Boolean
= false):
Unit
Appends the specified arc of a circle to the path as a new contour.
If the start of the path is different from the path’s current last point,
an automatic lineTo()
is added to connect the current contour to the
start of the arc.
If the path is empty, a moveTo()
is added with the first point of the arc.
Parameters
cx
- The x-coordinate of the center of the circle.
cy
- The x-coordinate of the center of the circle.
radius
- The radius of the circle.
startAngle
- Starting angle of the arc measured in degrees.
sweepAngle
- Sweep angle of the arc measured in degrees.
forceMoveTo
- Set to true
, if a moveTo()
should always be added before the arc,
instead of a lineTo()
.