Matrix4x4.CreateLookAt(Vector3, Vector3, Vector3) Método

Definição

Cria uma matriz de exibição.Creates a view matrix.

public:
 static System::Numerics::Matrix4x4 CreateLookAt(System::Numerics::Vector3 cameraPosition, System::Numerics::Vector3 cameraTarget, System::Numerics::Vector3 cameraUpVector);
public static System.Numerics.Matrix4x4 CreateLookAt (System.Numerics.Vector3 cameraPosition, System.Numerics.Vector3 cameraTarget, System.Numerics.Vector3 cameraUpVector);
static member CreateLookAt : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Matrix4x4
Public Shared Function CreateLookAt (cameraPosition As Vector3, cameraTarget As Vector3, cameraUpVector As Vector3) As Matrix4x4

Parâmetros

cameraPosition
Vector3

A posição da câmera.The position of the camera.

cameraTarget
Vector3

O destino para o qual a câmera está apontando.The target towards which the camera is pointing.

cameraUpVector
Vector3

A direção é "para cima" do ponto de vista da câmera.The direction that is "up" from the camera's point of view.

Retornos

A matriz de exibição.The view matrix.

Aplica-se a