Class

PathNode.ReflectiveCurveTo

Draws a smooth cubic Bézier curve using absolute coordinates.

Common
data class ReflectiveCurveTo(val x1: Float, val y1: Float, val x2: Float, val y2: Float) :
        PathNode(isCurve = true)

Draws a smooth cubic Bézier curve using absolute coordinates. This command ensures a seamless connection to a previous curve by inferring its first control point as a reflection of the last control point of the preceding command. Corresponds to the S path data command.

Parameters

x1 The absolute x-coordinate of the second control point.
y1 The absolute y-coordinate of the second control point.
x2 The absolute x-coordinate of the curve's end point.
y2 The absolute y-coordinate of the curve's end point.