共用方式為


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

適用於