Matrix4x4.CreatePerspectiveOffCenter Metoda

Definicja

Tworzy dostosowaną macierz projekcji perspektyw.

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

Parametry

left
Single

Minimalna wartość x woluminu widoku w pobliżu płaszczyzny widoku.

right
Single

Maksymalna wartość x woluminu widoku na płaszczyźnie widoku bliskiego widoku.

bottom
Single

Minimalna wartość y woluminu widoku w pobliżu płaszczyzny widoku.

top
Single

Maksymalna wartość y woluminu widoku w pobliżu płaszczyzny widoku.

nearPlaneDistance
Single

Odległość do bliskiej płaszczyzny widzenia.

farPlaneDistance
Single

Odległość do dalekiej płaszczyzny widokowej.

Zwraca

Macierz projekcji perspektywy.

Wyjątki

nearPlaneDistance jest mniejsze niż lub równe zero.

-lub-

farPlaneDistance jest mniejsze niż lub równe zero.

-lub-

nearPlaneDistance jest większe niż lub równe farPlaneDistance.

Dotyczy