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

适用于