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 值。

返回

正交投影矩阵。

适用于