[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.LookAt

LookAt Method

LookAt(Vector3, Vector3, Vector3)

Creates a view matrix.

Declaration
public static Matrix4x4 LookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
Parameters
Type Name Description
Vector3 cameraPosition

The position of the camera.

Vector3 cameraTarget

The target towards which the camera is pointing.

Vector3 cameraUpVector

The direction that is "up" from the camera's point of view.

Returns
Type Description
Matrix4x4

The view matrix.