PathMeasure

Class of android.graphics · PathMeasure.java · Android's reference

public class PathMeasure

Lengths along a path's contours, and the positions and tangents at a distance, over the path flattened.

Fields

public static final int POSITION_MATRIX_FLAG = 1 source
public static final int TANGENT_MATRIX_FLAG = 2 source

Constructors

public PathMeasure() empty body source
public PathMeasure(Path path, boolean forceClosed) source

Methods

public void setPath(Path path, boolean forceClosed) source
public float getLength() source
public boolean isClosed() source
public boolean nextContour() source
public boolean getPosTan(float distance, float[] pos, float[] tan) source
public boolean getMatrix(float distance, Matrix matrix, int flags) source
public boolean getSegment(float startD, float stopD, Path dst, boolean startWithMoveTo) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.