SKMatrix44.MapVector2 Method

Definition

Overloads

MapVector2(Single[], Single[])

Applies the matrix to a series of [x, y] pairs, returning the [x', y', z', w'] result.

MapVector2(Single[])

Applies the matrix to a series of [x, y] pairs, returning the [x', y', z', w'] result.

MapVector2(Single[], Single[])

Applies the matrix to a series of [x, y] pairs, returning the [x', y', z', w'] result.

public void MapVector2 (float[] src2, float[] dst4);

Parameters

src2
Single[]

The array of [x, y] pairs. The array must have an entry count of a multiple of 2.

dst4
Single[]

Returns the resulting [x', y', z', w'] sets. The array must have an entry count of a multiple of 4, and the same number of vectors as the source has pairs.

Remarks

The source array has an implied z-value of 0 and a w-value of 1, equivalent to [x, y, 0, 1].

Applies to

MapVector2(Single[])

Applies the matrix to a series of [x, y] pairs, returning the [x', y', z', w'] result.

public float[] MapVector2 (float[] src2);

Parameters

src2
Single[]

The array of [x, y] pairs. The array must have an entry count of a multiple of 2.

Returns

Single[]

Returns the resulting [x', y', z', w'] sets.

Remarks

The source array must have an entry count of a multiple of 2 (2, 4, 6, 8, ...). The resulting array will have an entry count of a multiple of 4 (4, 8, 12, 16, ...).

The source array has an implied z-value of 0 and a w-value of 1, equivalent to [x, y, 0, 1].

Applies to