語言

Matrix4x4.CreateViewportLeftHanded 方法

定義

從指定的參數建立一個左手視口矩陣。

public:
 static System::Numerics::Matrix4x4 CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth);
public static System.Numerics.Matrix4x4 CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth);
static member CreateViewportLeftHanded : single * single * single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateViewportLeftHanded (x As Single, y As Single, width As Single, height As Single, minDepth As Single, maxDepth As Single) As Matrix4x4

參數

x
Single

視口左上角的 X 座標。

y
Single

觀景口左上角的Y座標。

width
Single

視窗寬度。

height
Single

視窗高度。

minDepth
Single

視野最小深度。

maxDepth
Single

觀察窗最大深度。

傳回

左手視口矩陣。

備註

視窗矩陣

|寬度 / 2 |0 |0 |0 | |0 |-height / 2 |0 |0 | |0 |0 |maxDepth - 最小深度 |0 | |x + 寬度 / 2 |y + 高度 / 2 |最小深度 |1 |

適用於