Share via


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

定義

指定されたビュー ボリューム次元から、透視投影行列を作成します。

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

パラメーター

width
Single

ニア ビュー平面でのビュー ボリュームの幅。

height
Single

ニア ビュー平面でのビュー ボリュームの高さ。

nearPlaneDistance
Single

ニア ビュー平面までの距離。

farPlaneDistance
Single

ファー ビュー平面までの距離。

戻り値

透視投影行列。

例外

nearPlaneDistance が 0 以下です。

- または -

farPlaneDistance が 0 以下です。

- または -

nearPlaneDistancefarPlaneDistance 以上です。

適用対象