Matrix4x4.CreateViewport メソッド

定義

指定したパラメーターから右利きのビューポート マトリックスを作成します。

public:
 static System::Numerics::Matrix4x4 CreateViewport(float x, float y, float width, float height, float minDepth, float maxDepth);
public static System.Numerics.Matrix4x4 CreateViewport (float x, float y, float width, float height, float minDepth, float maxDepth);
static member CreateViewport : single * single * single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateViewport (x As Single, y As Single, width As Single, height As Single, minDepth As Single, maxDepth As Single) As Matrix4x4

パラメーター

x
Single

ビューポートの左上隅の X 座標。

y
Single

ビューポートの左上隅の Y 座標。

width
Single

ビューポートの幅。

height
Single

ビューポートの高さ。

minDepth
Single

ビューポートの最小深度。

maxDepth
Single

ビューポートの最大深度。

戻り値

右側のビューポート マトリックス。

注釈

ビューポート マトリックス |width / 2 |0 |0 |0 | |0 |-height / 2 |0 |0 | |0 |0 |minDepth - maxDepth |0 | |x + width / 2 |y + 高さ / 2 |minDepth |1 |

適用対象