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

定義

指定されたビュー ボリューム次元から、透視投影行列を作成します。Creates a perspective projection matrix from the given view volume dimensions.

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

ニア ビュー平面でのビュー ボリュームの幅。The width of the view volume at the near view plane.

height
Single

ニア ビュー平面でのビュー ボリュームの高さ。The height of the view volume at the near view plane.

nearPlaneDistance
Single

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

farPlaneDistance
Single

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

戻り値

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

例外

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.

適用対象