Bagikan melalui


Matrix4x4.CreatePerspectiveOffCenter Metode

Definisi

Membuat matriks proyeksi perspektif yang disesuaikan.

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

Parameter

left
Single

Nilai x minimum volume tampilan di bidang tampilan dekat.

right
Single

Nilai x maksimum volume tampilan di bidang tampilan dekat.

bottom
Single

Nilai y minimum volume tampilan di bidang tampilan dekat.

top
Single

Nilai y maksimum volume tampilan di bidang tampilan dekat.

nearPlaneDistance
Single

Jarak ke bidang tampilan dekat.

farPlaneDistance
Single

Jarak ke bidang tampilan jauh.

Mengembalikan

Matriks proyeksi perspektif.

Pengecualian

nearPlaneDistance kurang dari atau sama dengan nol.

-atau-

farPlaneDistance kurang dari atau sama dengan nol.

-atau-

nearPlaneDistance lebih besar dari atau sama dengan farPlaneDistance.

Berlaku untuk