Matrix4x4.CreatePerspectiveOffCenter Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une matrice de projection de perspective personnalisée.
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
Paramètres
- left
- Single
Valeur x minimale du volume d’affichage au plan de vue proche.
- right
- Single
Valeur x maximale du volume d’affichage au plan de vue proche.
- bottom
- Single
Valeur y minimale du volume d’affichage au plan de vue proche.
- top
- Single
Valeur y maximale du volume d’affichage dans le 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.