Matrix4x4.CreatePerspective(Single, Single, Single, Single) Méthode

Définition

Crée une matrice de projection de perspective à partir des dimensions du volume d’affichage donnés.

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

Paramètres

width
Single

Largeur du volume d’affichage au plan de vue proche.

height
Single

Hauteur du volume d’affichage au plan de vue proche.

nearPlaneDistance
Single

Distance vers le plan de vue proche.

farPlaneDistance
Single

Distance jusqu’au plan d’affichage lointain.

Retours

Matrice de projection de perspective.

Exceptions

nearPlaneDistance est inférieur ou égal à zéro.

-ou-

farPlaneDistance est inférieur ou égal à zéro.

-ou-

nearPlaneDistance est supérieur ou égal à farPlaneDistance.

S’applique à