Matrix4x4.CreatePerspective(Single, Single, Single, Single) Matrix4x4.CreatePerspective(Single, Single, Single, Single) Matrix4x4.CreatePerspective(Single, Single, Single, Single) Matrix4x4.CreatePerspective(Single, Single, Single, Single) Method

Definition

Erstellt eine perspektivische Projektionsmatrix aus den angegebenen Abmessungen des Bildraums (View Volume).Creates a perspective projection matrix from the given view volume dimensions.

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

Parameter

width
Single Single Single Single

Die Breite des Bildraums auf der Nahsichtebene.The width of the view volume at the near view plane.

height
Single Single Single Single

Die Höhe des Bildraums auf der Nahsichtebene.The height of the view volume at the near view plane.

nearPlaneDistance
Single Single Single Single

Der Abstand zur Nahsichtebene.The distance to the near view plane.

farPlaneDistance
Single Single Single Single

Der Abstand zur Fernsichtebene.The distance to the far view plane.

Gibt zurück

Die perspektivische Projektionsmatrix.The perspective projection matrix.

Ausnahmen

nearPlaneDistance ist kleiner gleich 0 (null).nearPlaneDistance is less than or equal to zero.

- oder --or- farPlaneDistance ist kleiner gleich 0 (null).farPlaneDistance is less than or equal to zero.

- oder --or- nearPlaneDistance ist größer gleich farPlaneDistance.nearPlaneDistance is greater than or equal to farPlaneDistance.

Gilt für: