Class

PathNode.ArcTo

Draws an elliptical arc from the current point to a new point using absolute coordinates.

Common
data class ArcTo(
        val horizontalEllipseRadius: Float,
        val verticalEllipseRadius: Float,
        val theta: Float,
        val isMoreThanHalf: Boolean,
        val isPositiveArc: Boolean,
        val arcStartX: Float,
        val arcStartY: Float,
    ) : PathNode()

Draws an elliptical arc from the current point to a new point using absolute coordinates. Corresponds to the A path data command.

Parameters

horizontalEllipseRadius The radius of the ellipse on the x-axis.
verticalEllipseRadius The radius of the ellipse on the y-axis.
theta The rotation angle of the ellipse in degrees.
isMoreThanHalf If true, the larger of the two possible arcs is chosen.
isPositiveArc If true, the arc is drawn in a "positive-angle" direction.
arcStartX The absolute x-coordinate of the arc's end point.
arcStartY The absolute y-coordinate of the arc's end point.