ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX Namespace / Matrix4x4 Structure / LookAtRef Method
The view matrix.
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
    LookAtRef Method
    In This Topic
    Creates a view matrix.
    Syntax
    'Declaration
     
    Public Shared Sub LookAtRef( _
       ByRef result As Matrix4x4, _
       ByRef cameraPosition As Vector3, _
       ByRef cameraTarget As Vector3, _
       ByRef cameraUpVector As Vector3 _
    ) 
    public static void LookAtRef( 
       out Matrix4x4 result,
       ref Vector3 cameraPosition,
       ref Vector3 cameraTarget,
       ref Vector3 cameraUpVector
    )

    Parameters

    result
    The view matrix.
    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.
    See Also