語言

Matrix4x4.CreatePerspectiveOffCenter 方法

定義

建立客製化的透視投影矩陣。

public:
 static System::Numerics::Matrix4x4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspectiveOffCenter : single * single * single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspectiveOffCenter (left As Single, right As Single, bottom As Single, top As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4

參數

left
Single

近視平面視野體積的最小x值。

right
Single

近視平面視野體積的最大 x 值。

bottom
Single

近視平面視野體積的最小 y 值。

top
Single

近視平面視野體積的最大 y 值。

nearPlaneDistance
Single

距離近視平面的距離。

farPlaneDistance
Single

距離遠景平面的距離。

傳回

透視投影矩陣。

例外狀況

nearPlaneDistance 小於或等於零。

-或-

farPlaneDistance 小於或等於零。

-或-

nearPlaneDistance大於或等於。farPlaneDistance

適用於