# PathNode

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

  ```
  sealed class PathNode
  ```
Known direct subclasses [PathNode.ArcTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ArcTo), [PathNode.Close](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.Close), [PathNode.CurveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo), [PathNode.HorizontalTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.HorizontalTo), [PathNode.LineTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.LineTo), [PathNode.MoveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.MoveTo), [PathNode.QuadTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.QuadTo), [PathNode.ReflectiveCurveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo), [PathNode.ReflectiveQuadTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveQuadTo), [PathNode.RelativeArcTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeArcTo), [PathNode.RelativeCurveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeCurveTo), [PathNode.RelativeHorizontalTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeHorizontalTo), [PathNode.RelativeLineTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeLineTo), [PathNode.RelativeMoveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeMoveTo), [PathNode.RelativeQuadTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeQuadTo), [PathNode.RelativeReflectiveCurveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveCurveTo), [PathNode.RelativeReflectiveQuadTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveQuadTo), [PathNode.RelativeVerticalTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeVerticalTo), [PathNode.VerticalTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.VerticalTo)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ArcTo` | Draws an elliptical arc from the current point to a new point using absolute coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.Close` | Closes the current subpath by drawing a straight line from the current point to the initial point of the subpath. |
| `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. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.HorizontalTo` | Draws a horizontal line from the current point to the specified absolute x-coordinate. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.LineTo` | Draws a line from the current point to the specified absolute (x,y) coordinate. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.MoveTo` | Starts a new subpath at the given absolute (x,y) coordinate. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.QuadTo` | Draws a quadratic Bézier curve from the current point to a new point using absolute coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo` | Draws a smooth cubic Bézier curve using absolute coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveQuadTo` | Draws a smooth quadratic Bézier curve using absolute coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeArcTo` | Draws an elliptical arc from the current point to a new point using relative coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeCurveTo` | Draws a cubic Bézier curve from the current point to a new point using relative coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeHorizontalTo` | Draws a horizontal line from the current point, offset by a relative distance `dx`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeLineTo` | Draws a line from the current point to a new point, defined by a relative offset. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeMoveTo` | Starts a new subpath at a point defined by a relative offset from the current point. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeQuadTo` | Draws a quadratic Bézier curve from the current point to a new point using relative coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveCurveTo` | Draws a smooth cubic Bézier curve using relative coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveQuadTo` | Draws a smooth quadratic Bézier curve using relative coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeVerticalTo` | Draws a vertical line from the current point, offset by a relative distance `dy`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.VerticalTo` | Draws a vertical line from the current point to the specified absolute y-coordinate. |

*** ** * ** ***

Represents a single command in a vector graphics path. Each node corresponds to a command in a standard path data specification.

## Summary

| ### Nested types |
|---|
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ArcTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws an elliptical arc from the current point to a new point using absolute coordinates. |
| `object https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.Close : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Closes the current subpath by drawing a straight line from the current point to the initial point of the subpath. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.CurveTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a cubic Bézier curve from the current point to a new point using absolute coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.HorizontalTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a horizontal line from the current point to the specified absolute x-coordinate. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.LineTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a line from the current point to the specified absolute (x,y) coordinate. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.MoveTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Starts a new subpath at the given absolute (x,y) coordinate. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.QuadTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a quadratic Bézier curve from the current point to a new point using absolute coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveCurveTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a smooth cubic Bézier curve using absolute coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.ReflectiveQuadTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a smooth quadratic Bézier curve using absolute coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeArcTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws an elliptical arc from the current point to a new point using relative coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeCurveTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a cubic Bézier curve from the current point to a new point using relative coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeHorizontalTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a horizontal line from the current point, offset by a relative distance `dx`. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeLineTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a line from the current point to a new point, defined by a relative offset. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeMoveTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Starts a new subpath at a point defined by a relative offset from the current point. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeQuadTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a quadratic Bézier curve from the current point to a new point using relative coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveCurveTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a smooth cubic Bézier curve using relative coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeReflectiveQuadTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a smooth quadratic Bézier curve using relative coordinates. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.RelativeVerticalTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a vertical line from the current point, offset by a relative distance `dy`. |
| `data class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode.VerticalTo : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode` Draws a vertical line from the current point to the specified absolute y-coordinate. |

| ### Protected constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode#PathNode(kotlin.Boolean,kotlin.Boolean)(isCurve: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isQuad: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` | Cmn |

| ### Public properties |
|---|---|---|
| `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 |

## Protected constructors

### PathNode

Cmn

```
protected PathNode(isCurve: Boolean = false, isQuad: Boolean = false)
```

## Public properties

### isCurve

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

```
val isCurve: Boolean
```

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

### isQuad

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

```
val isQuad: Boolean
```

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