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.
public static final int POSITION_MATRIX_FLAG = 1 sourcepublic static final int TANGENT_MATRIX_FLAG = 2 sourcepublic PathMeasure() empty body sourcepublic PathMeasure(Path path, boolean forceClosed) sourcepublic void setPath(Path path, boolean forceClosed) sourcepublic float getLength() sourcepublic boolean isClosed() sourcepublic boolean nextContour() sourcepublic boolean getPosTan(float distance, float[] pos, float[] tan) sourcepublic boolean getMatrix(float distance, Matrix matrix, int flags) sourcepublic boolean getSegment(float startD, float stopD, Path dst, boolean startWithMoveTo) sourceMade 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.