Matrix4x4.CreatePerspectiveOffCenterLeftHanded 方法

定义

创建左手自定义透视投影矩阵。

public:
 static System::Numerics::Matrix4x4 CreatePerspectiveOffCenterLeftHanded(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspectiveOffCenterLeftHanded (float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspectiveOffCenterLeftHanded : single * single * single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspectiveOffCenterLeftHanded (left As Single, right As Single, bottom As Single, top As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4

参数

left
Single

视图体在近视图平面上的最小 x 值。

right
Single

视图体在近视图平面上的最大 x 值。

bottom
Single

视图体在近视图平面上的最小 y 值。

top
Single

视图体在近视图平面上的最大 y 值。

nearPlaneDistance
Single

与近视图平面之间的距离。

farPlaneDistance
Single

与远视图平面之间的距离。

返回

左手透视投影矩阵。

例外

nearPlaneDistance 小于或等于零。

- 或 -

farPlaneDistance 小于或等于零。

- 或 -

nearPlaneDistance 大于或等于 farPlaneDistance

适用于