Matrix.MapVectors Method

Definition

Overloads

MapVectors(Single[])

Apply this matrix to the array of 2D vectors, and write the transformed vectors back into the array.

MapVectors(Single[], Single[])

Apply this matrix to the array of 2D vectors specified by src, and write the transformed vectors into the array of vectors specified by dst.

MapVectors(Single[], Int32, Single[], Int32, Int32)

Apply this matrix to the array of 2D vectors specified by src, and write the transformed vectors into the array of vectors specified by dst.

MapVectors(Single[])

Apply this matrix to the array of 2D vectors, and write the transformed vectors back into the array.

[Android.Runtime.Register("mapVectors", "([F)V", "GetMapVectors_arrayFHandler")]
public virtual void MapVectors (float[]? vecs);
[<Android.Runtime.Register("mapVectors", "([F)V", "GetMapVectors_arrayFHandler")>]
abstract member MapVectors : single[] -> unit
override this.MapVectors : single[] -> unit

Parameters

vecs
Single[]

The array [x0, y0, x1, y1, ...] of vectors to transform.

Attributes

Remarks

Apply this matrix to the array of 2D vectors, and write the transformed vectors back into the array. Note: this method does not apply the translation associated with the matrix. Use Matrix#mapPoints(float[]) if you want the translation to be applied.

Java documentation for android.graphics.Matrix.mapVectors(float[]).

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

MapVectors(Single[], Single[])

Apply this matrix to the array of 2D vectors specified by src, and write the transformed vectors into the array of vectors specified by dst.

[Android.Runtime.Register("mapVectors", "([F[F)V", "GetMapVectors_arrayFarrayFHandler")]
public virtual void MapVectors (float[]? dst, float[]? src);
[<Android.Runtime.Register("mapVectors", "([F[F)V", "GetMapVectors_arrayFarrayFHandler")>]
abstract member MapVectors : single[] * single[] -> unit
override this.MapVectors : single[] * single[] -> unit

Parameters

dst
Single[]

The array of dst vectors (x,y pairs)

src
Single[]

The array of src vectors (x,y pairs)

Attributes

Remarks

Apply this matrix to the array of 2D vectors specified by src, and write the transformed vectors into the array of vectors specified by dst. The two arrays represent their "vectors" as pairs of floats [x, y]. Note: this method does not apply the translation associated with the matrix. Use Matrix#mapPoints(float[], float[]) if you want the translation to be applied.

Java documentation for android.graphics.Matrix.mapVectors(float[], float[]).

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

MapVectors(Single[], Int32, Single[], Int32, Int32)

Apply this matrix to the array of 2D vectors specified by src, and write the transformed vectors into the array of vectors specified by dst.

[Android.Runtime.Register("mapVectors", "([FI[FII)V", "GetMapVectors_arrayFIarrayFIIHandler")]
public virtual void MapVectors (float[]? dst, int dstIndex, float[]? src, int srcIndex, int vectorCount);
[<Android.Runtime.Register("mapVectors", "([FI[FII)V", "GetMapVectors_arrayFIarrayFIIHandler")>]
abstract member MapVectors : single[] * int * single[] * int * int -> unit
override this.MapVectors : single[] * int * single[] * int * int -> unit

Parameters

dst
Single[]

The array of dst vectors (x,y pairs)

dstIndex
Int32

The index of the first [x,y] pair of dst floats

src
Single[]

The array of src vectors (x,y pairs)

srcIndex
Int32

The index of the first [x,y] pair of src floats

vectorCount
Int32

The number of vectors (x,y pairs) to transform

Attributes

Remarks

Apply this matrix to the array of 2D vectors specified by src, and write the transformed vectors into the array of vectors specified by dst. The two arrays represent their "vectors" as pairs of floats [x, y]. Note: this method does not apply the translation associated with the matrix. Use Matrix#mapPoints(float[], int, float[], int, int) if you want the translation to be applied.

Java documentation for android.graphics.Matrix.mapVectors(float[], int, float[], int, 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