Matrix4x4.CreateOrthographic(Single, Single, Single, Single) 方法

定義

依據指定的視圖體維度建立正視透視圖矩陣。

public:
 static System::Numerics::Matrix4x4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane);
public static System.Numerics.Matrix4x4 CreateOrthographic (float width, float height, float zNearPlane, float zFarPlane);
static member CreateOrthographic : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateOrthographic (width As Single, height As Single, zNearPlane As Single, zFarPlane As Single) As Matrix4x4

參數

width
Single

視圖體的寬度。

height
Single

視圖體的高度。

zNearPlane
Single

視圖體最小的 Z 值。

zFarPlane
Single

視圖體最大的 Z 值。

傳回

正視投影矩陣。

適用於