Matrix4x4.CreatePerspectiveFieldOfView(Single, Single, Single, Single) メソッド

定義

視野、縦横比、そしてニアおよびファー ビュー平面距離に基づいて、透視投影行列作成します。Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.

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

パラメーター

fieldOfView
Single

y 方向の視野 (ラジアン)。The field of view in the y direction, in radians.

aspectRatio
Single

ビュー領域の幅を高さで割った値として定義される縦横比。The aspect ratio, defined as view space width divided by height.

nearPlaneDistance
Single

ニア ビュー平面までの距離。The distance to the near view plane.

farPlaneDistance
Single

ファー ビュー平面までの距離。The distance to the far view plane.

戻り値

透視投影行列。The perspective projection matrix.

例外

fieldOfView が 0 以下です。fieldOfView is less than or equal to zero.

- または --or- fieldOfViewPI 以上です。fieldOfView is greater than or equal to PI.

nearPlaneDistance が 0 以下です。nearPlaneDistance is less than or equal to zero.

- または --or- farPlaneDistance が 0 以下です。farPlaneDistance is less than or equal to zero.

- または --or- nearPlaneDistancefarPlaneDistance 以上です。nearPlaneDistance is greater than or equal to farPlaneDistance.

適用対象