# PathNode.CurveTo

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.CurveTo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  data class PathNode.CurveTo : 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.CurveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo) |

*** ** * ** ***

Draws a cubic Bézier curve from the current point to a new point using absolute coordinates. Corresponds to the `C` path data command.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo#CurveTo(kotlin.Float,kotlin.Float,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, x3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y3: 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.CurveTo#x1()` The absolute x-coordinate of the first 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.CurveTo#x2()` 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.CurveTo#x3()` 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.CurveTo#y1()` The absolute y-coordinate of the first 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.CurveTo#y2()` 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.CurveTo#y3()` 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

### CurveTo

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

```
CurveTo(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float)
```

| Parameters |
|---|---|
| `x1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute x-coordinate of the first control point. |
| `y1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute y-coordinate of the first control point. |
| `x2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute x-coordinate of the second control point. |
| `y2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute y-coordinate of the second control point. |
| `x3: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The absolute x-coordinate of the curve's end point. |
| `y3: 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 first 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 second control point.

### x3

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

```
val x3: 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 first 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 second control point.

### y3

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

```
val y3: Float
```

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