共用方式為


Matrix4x4.CreatePerspectiveFieldOfViewLeftHanded 方法

定義

根據檢視、外觀比例和近方檢視平面距離的欄位,建立左手檢視透視投影矩陣。

public:
 static System::Numerics::Matrix4x4 CreatePerspectiveFieldOfViewLeftHanded(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspectiveFieldOfViewLeftHanded (float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspectiveFieldOfViewLeftHanded : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspectiveFieldOfViewLeftHanded (fieldOfView As Single, aspectRatio As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4

參數

fieldOfView
Single

在 Y 方向的視野,以弧度為單位。

aspectRatio
Single

外觀比例,定義為檢視空間寬度除以高度。

nearPlaneDistance
Single

到附近的檢視平面之距離。

farPlaneDistance
Single

到遠離檢視平面的距離。

傳回

左側透視投影矩陣。

例外狀況

fieldOfView 小於或等於零。

-或-

fieldOfView 大於或等於 PI

-或-

nearPlaneDistance 小於或等於零。

-或-

farPlaneDistance 小於或等於零。

-或-

nearPlaneDistance 大於或等於 farPlaneDistance

適用於