[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.LookAtRef

LookAtRef Method

LookAtRef(out Matrix4x4, ref Vector3, ref Vector3, ref Vector3)

Creates a view matrix.

Declaration
public static void LookAtRef(out Matrix4x4 result, ref Vector3 cameraPosition, ref Vector3 cameraTarget, ref Vector3 cameraUpVector)
Public Shared Sub LookAtRef(ByRef result As Matrix4x4, ByRef cameraPosition As Vector3, ByRef cameraTarget As Vector3, ByRef cameraUpVector As Vector3)
Parameters
Type Name Description
Matrix4x4 result

The view matrix.

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.