{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PathMeasureKt

public final class PathMeasureKt


Summary

Public methods

static final @NonNull PathMeasure

Create an empty PathMeasure object.

Public methods

PathMeasure

public static final @NonNull 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.