D3DXMatrixLookAtLH

This function builds a left-handed, look-at matrix.

D3DXMATRIX* D3DXMatrixLookAtLH(
  D3DXMATRIX* pOut,
  CONST D3DXVECTOR3* pEye,
  CONST D3DXVECTOR3* pAt,
  CONST D3DXVECTOR3* pUp
); 

Parameters

  • pOut
    [in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
  • pEye
    [in] Pointer to the D3DXVECTOR3 structure that defines the eye point. This value is used in translation.
  • pAt
    [in] Pointer to the D3DXVECTOR3 structure that defines the camera look-at target.
  • pUp
    [in] Pointer to the D3DXVECTOR3 structure that defines the current world's up, usually [0, 1, 0].

Return Values

Pointer to a D3DXMATRIX structure that is a left-handed, look-at matrix.

Remarks

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixLookAtLH function can be used as a parameter for another function.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3dx8math.h.
Link Library: D3dx8.lib.

See Also

D3DXMATRIX | D3DXVECTOR3

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.