Partager via


PathMeasure.GetMatrix(Single, Matrix, MatrixFlags) Method

Definition

Pins distance to 0 <= distance <= getLength(), and then computes the corresponding matrix.

[Android.Runtime.Register("getMatrix", "(FLandroid/graphics/Matrix;I)Z", "GetGetMatrix_FLandroid_graphics_Matrix_IHandler")]
public virtual bool GetMatrix (float distance, Android.Graphics.Matrix? matrix, Android.Graphics.MatrixFlags flags);
[<Android.Runtime.Register("getMatrix", "(FLandroid/graphics/Matrix;I)Z", "GetGetMatrix_FLandroid_graphics_Matrix_IHandler")>]
abstract member GetMatrix : single * Android.Graphics.Matrix * Android.Graphics.MatrixFlags -> bool
override this.GetMatrix : single * Android.Graphics.Matrix * Android.Graphics.MatrixFlags -> bool

Parameters

distance
Single

The distance along the associated path

matrix
Matrix

Allocated by the caller, this is set to the transformation associated with the position and tangent at the specified distance

flags
MatrixFlags

Specified what aspects should be returned in the matrix.

Returns

Attributes

Remarks

Pins distance to 0 <= distance <= getLength(), and then computes the corresponding matrix. Returns false if there is no path, or a zero-length path was specified, in which case matrix is unchanged.

Java documentation for android.graphics.PathMeasure.getMatrix(float, android.graphics.Matrix, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to