D3DXMatrixOrthoOffCenterLH

This function builds a customized, left-handed orthogonal projection matrix.

D3DXMATRIX* D3DXMatrixOrthoOffCenterLH(
  D3DXMATRIX* pOut,
  FLOAT l,
  FLOAT r,
  FLOAT t,
  FLOAT b,
  FLOAT zn,
  FLOAT zf
); 

Parameters

  • pOut
    [in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
  • l
    [in] Minimum x-value of view-volume.
  • r
    [in] Maximum x-value of view-volume.
  • t
    [in] Minimum y-value of view-volume.
  • b
    [in] Maximum y-value of view-volume.
  • zn
    [in] Minimum z-value of the view volume.
  • zf
    [in] Maximum z-value of the view volume.

Return Values

Pointer to a D3DXMATRIX structure that is a customized, left-handed orthogonal projection matrix.

Remarks

An orthogonal matrix is an invertible matrix for which the inverse of the matrix is equal to the transpose of the matrix.

All the parameters of the D3DXMatrixOrthoOffCenterLH function are distances in camera-space. The parameters describe the dimensions of the view-volume.

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixOrthoOffCenterLH 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

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.