ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX Namespace / Matrix4x4 Structure / LookAt Method
The position of the camera.
The target towards which the camera is pointing.
The direction that is "up" from the camera's point of view.

In This Topic
    LookAt Method
    In This Topic
    Creates a view matrix.
    Syntax
    'Declaration
     
    Public Shared Function LookAt( _
       ByVal cameraPosition As Vector3, _
       ByVal cameraTarget As Vector3, _
       ByVal cameraUpVector As Vector3 _
    ) As Matrix4x4
    public static Matrix4x4 LookAt( 
       Vector3 cameraPosition,
       Vector3 cameraTarget,
       Vector3 cameraUpVector
    )

    Parameters

    cameraPosition
    The position of the camera.
    cameraTarget
    The target towards which the camera is pointing.
    cameraUpVector
    The direction that is "up" from the camera's point of view.

    Return Value

    The view matrix.
    See Also