# PathSegmentUtilities

Added in 1.0.0

*** ** * ** ***


```
public final class PathSegmentUtilities
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/path/PathSegment` | `https://developer.android.com/reference/androidx/graphics/path/PathSegmentUtilities#getCloseSegment()()` A `https://developer.android.com/reference/androidx/graphics/path/PathSegment` containing the `https://developer.android.com/reference/androidx/graphics/path/PathSegment.Type#Close` command. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/path/PathSegment` | `https://developer.android.com/reference/androidx/graphics/path/PathSegmentUtilities#getDoneSegment()()` A `https://developer.android.com/reference/androidx/graphics/path/PathSegment` containing the `https://developer.android.com/reference/androidx/graphics/path/PathSegment.Type#Done` command. |

## Public methods

### getCloseSegment

Artifact: [androidx.graphics:graphics-path](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/graphics/path/PathSegment.kt+symbol:CloseSegment) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public static final @NonNull PathSegment getCloseSegment()
```

A `https://developer.android.com/reference/androidx/graphics/path/PathSegment` containing the `https://developer.android.com/reference/androidx/graphics/path/PathSegment.Type#Close` command. This static object exists to avoid allocating a new segment when returning a `https://developer.android.com/reference/androidx/graphics/path/PathSegment.Type#Close` result from `https://developer.android.com/reference/androidx/graphics/path/PathIterator#next(kotlin.FloatArray,kotlin.Int)`.

### getDoneSegment

Artifact: [androidx.graphics:graphics-path](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/graphics/path/PathSegment.kt+symbol:DoneSegment) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public static final @NonNull PathSegment getDoneSegment()
```

A `https://developer.android.com/reference/androidx/graphics/path/PathSegment` containing the `https://developer.android.com/reference/androidx/graphics/path/PathSegment.Type#Done` command. This static object exists to avoid allocating a new segment when returning a `https://developer.android.com/reference/androidx/graphics/path/PathSegment.Type#Done` result from `https://developer.android.com/reference/androidx/graphics/path/PathIterator#next(kotlin.FloatArray,kotlin.Int)`.