Matrix4x4.CreateViewportLeftHanded 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从指定参数创建左手视区矩阵。
public:
static System::Numerics::Matrix4x4 CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth);
public static System.Numerics.Matrix4x4 CreateViewportLeftHanded (float x, float y, float width, float height, float minDepth, float maxDepth);
static member CreateViewportLeftHanded : single * single * single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateViewportLeftHanded (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 |maxDepth - minDepth |0 | |x + width / 2 |y + height / 2 |minDepth |1 |