---
title: "PathMeasure"
description: "Create an empty [PathMeasure] object. To uses this to measure the length of a path, and/or to
find the position and tangent along it, call [PathMeasure.setPath]. Note that once a path is
associated with the measure object, it is undefined if the path is subsequently modified and the
measure object is used. If the path is modified, you must call [PathMeasure.setPath] with the
path."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
expect fun PathMeasure(): PathMeasure
```


Create an empty `PathMeasure` object. To uses this to measure the length of a path, and/or to
find the position and tangent along it, call `PathMeasure.setPath`. Note that once a path is
associated with the measure object, it is undefined if the path is subsequently modified and the
measure object is used. If the path is modified, you must call `PathMeasure.setPath` with the
path.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
actual fun PathMeasure(): PathMeasure
```


