Matrix4x4.CreatePerspective(Single, Single, Single, Single) Metoda

Definicja

Tworzy macierz projekcji perspektywy na podstawie wymiarów woluminu widoku.

public:
 static System::Numerics::Matrix4x4 CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspective (float width, float height, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspective : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspective (width As Single, height As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4

Parametry

width
Single

Szerokość woluminu widoku na płaszczyźnie bliskiego widoku.

height
Single

Wysokość woluminu widoku na płaszczyźnie bliskiej widoku.

nearPlaneDistance
Single

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

farPlaneDistance
Single

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

Zwraca

Macierz projekcji perspektywy.

Wyjątki

nearPlaneDistance wartość jest mniejsza niż lub równa zero.

-lub-

farPlaneDistance wartość jest mniejsza niż lub równa zero.

-lub-

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

Dotyczy