# PathNode.ReflectiveCurveTo

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/vector/PathNode.kt+class:androidx.compose.ui.graphics.vector.PathNode.ReflectiveCurveTo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  data class PathNode.ReflectiveCurveTo : PathNode
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.graphics.vector.PathNode](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode) ||
|   | ↳ | [androidx.compose.ui.graphics.vector.PathNode.ReflectiveCurveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/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 |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo#ReflectiveCurveTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo#x1()` The absolute x-coordinate of the second control point. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo#x2()` The absolute x-coordinate of the curve's end point. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo#y1()` The absolute y-coordinate of the second control point. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo#y2()` The absolute y-coordinate of the curve's end point. | Cmn |

| ### Inherited properties |
|---|
| From [androidx.compose.ui.graphics.vector.PathNode](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode#isCurve()` `true` if this command is a cubic Bézier curve, `false` otherwise. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode#isQuad()` `true` if this command is a quadratic Bézier curve, `false` otherwise. | Cmn | |

## Public constructors

### ReflectiveCurveTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

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

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute x-coordinate of the second control point. |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute y-coordinate of the second control point. |
| `x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute x-coordinate of the curve's end point. |
| `y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute y-coordinate of the curve's end point. |

## Public properties

### x1

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val x1: Float
```

The absolute x-coordinate of the second control point.

### x2

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val x2: Float
```

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

### y1

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val y1: Float
```

The absolute y-coordinate of the second control point.

### y2

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val y2: Float
```

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