Matrix4x4.CreatePerspectiveFieldOfView(Single, Single, Single, Single) Método
Definição
Cria uma matriz de projeção de perspectiva com base em um campo de visão, taxa de proporção e distâncias do plano de exibição próximo e distante.Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
public:
static System::Numerics::Matrix4x4 CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspectiveFieldOfView (float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspectiveFieldOfView : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspectiveFieldOfView (fieldOfView As Single, aspectRatio As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4
Parâmetros
- fieldOfView
- Single
O campo de visão na direção y, em radianos.The field of view in the y direction, in radians.
- aspectRatio
- Single
A taxa de proporção, definida como a largura do espaço de exibição dividida pela altura.The aspect ratio, defined as view space width divided by height.
- nearPlaneDistance
- Single
A distância ao plano de exibição próximo.The distance to the near view plane.
- farPlaneDistance
- Single
A distância ao plano de exibição distante.The distance to the far view plane.
Retornos
A matriz de projeção de perspectiva.The perspective projection matrix.
Exceções
fieldOfView é menor que ou igual a zero.fieldOfView is less than or equal to zero.
- ou --or-
fieldOfView é maior ou igual a PI.fieldOfView is greater than or equal to PI.
nearPlaneDistance é menor que ou igual a zero.nearPlaneDistance is less than or equal to zero.
- ou --or-
farPlaneDistance é menor que ou igual a zero.farPlaneDistance is less than or equal to zero.
- ou --or-
nearPlaneDistance é maior ou igual a farPlaneDistance.nearPlaneDistance is greater than or equal to farPlaneDistance.