SKMatrix44.MapVector2 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應