Sdílet prostřednictvím


Matrix4x4.CreateLookTo(Vector3, Vector3, Vector3) Metoda

Definice

Vytvoří matici zobrazení zprava.

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

Parametry

cameraPosition
Vector3

Poloha kamery.

cameraDirection
Vector3

Směr, kterým kamera ukazuje.

cameraUpVector
Vector3

Směr, který je z pohledu kamery "nahoru".

Návraty

Matice zobrazení zprava.

Platí pro