語言

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

適用於