# PathUtilities

Added in 1.0.0

*** ** * ** ***


```
public final class PathUtilities
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/path/PathIterator` | `https://developer.android.com/reference/androidx/graphics/path/PathUtilities#(android.graphics.Path).iterator()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Path.html receiver)` Creates a new `https://developer.android.com/reference/androidx/graphics/path/PathIterator` for this `https://developer.android.com/reference/android/graphics/Path.html` that evaluates conics as quadratics. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/path/PathIterator` | `https://developer.android.com/reference/androidx/graphics/path/PathUtilities#(android.graphics.Path).iterator(androidx.graphics.path.PathIterator.ConicEvaluation,kotlin.Float)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Path.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/path/PathIterator.ConicEvaluation conicEvaluation, float tolerance )` Creates a new `https://developer.android.com/reference/androidx/graphics/path/PathIterator` for this `https://developer.android.com/reference/android/graphics/Path.html`. |

## Public methods

### iterator

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/PathIterator.kt+function:iterator) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public static final @NonNull PathIterator iterator(@NonNull Path receiver)
```

Creates a new `https://developer.android.com/reference/androidx/graphics/path/PathIterator` for this `https://developer.android.com/reference/android/graphics/Path.html` that evaluates conics as quadratics. To preserve conics, use the `https://developer.android.com/reference/androidx/graphics/path/package-summary#(android.graphics.Path).iterator()` function that takes a `https://developer.android.com/reference/androidx/graphics/path/PathIterator.ConicEvaluation` parameter.

### iterator

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/PathIterator.kt+function:iterator) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public static final @NonNull PathIterator iterator(
    @NonNull Path receiver,
    @NonNull PathIterator.ConicEvaluation conicEvaluation,
    float tolerance
)
```

Creates a new `https://developer.android.com/reference/androidx/graphics/path/PathIterator` for this `https://developer.android.com/reference/android/graphics/Path.html`. To preserve conics as conics (not convert them to quadratics), set `https://developer.android.com/reference/androidx/graphics/path/package-summary#(android.graphics.Path).iterator(androidx.graphics.path.PathIterator.ConicEvaluation,kotlin.Float)` to `https://developer.android.com/reference/androidx/graphics/path/PathIterator.ConicEvaluation#AsConic`.