PathNode.ReflectiveCurveTo


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.

Summary

Public constructors

ReflectiveCurveTo(x1: Float, y1: Float, x2: Float, y2: Float)
Cmn

Public properties

Float

The absolute x-coordinate of the second control point.

Cmn
Float

The absolute x-coordinate of the curve's end point.

Cmn
Float

The absolute y-coordinate of the second control point.

Cmn
Float

The absolute y-coordinate of the curve's end point.

Cmn

Inherited properties

From androidx.compose.ui.graphics.vector.PathNode
Boolean

true if this command is a cubic Bézier curve, false otherwise.

Cmn
Boolean

true if this command is a quadratic Bézier curve, false otherwise.

Cmn

Public constructors

ReflectiveCurveTo

ReflectiveCurveTo(x1: Float, y1: Float, x2: Float, y2: Float)
Parameters
x1: Float

The absolute x-coordinate of the second control point.

y1: Float

The absolute y-coordinate of the second control point.

x2: Float

The absolute x-coordinate of the curve's end point.

y2: Float

The absolute y-coordinate of the curve's end point.

Public properties

x1

val x1Float

The absolute x-coordinate of the second control point.

x2

val x2Float

The absolute x-coordinate of the curve's end point.

y1

val y1Float

The absolute y-coordinate of the second control point.

y2

val y2Float

The absolute y-coordinate of the curve's end point.