Skip to content

Latest commit

 

History

History
96 lines (71 loc) · 2.71 KB

nf-directxmath-xmmatrixorthographiclh.md

File metadata and controls

96 lines (71 loc) · 2.71 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxmath.XMMatrixOrthographicLH
XMMatrixOrthographicLH function (directxmath.h)
Builds an orthogonal projection matrix for a left-handed coordinate system.
Use DirectX..XMMatrixOrthographicLH
XMMatrixOrthographicLH
XMMatrixOrthographicLH method [DirectX Math Support APIs]
dxmath.xmmatrixorthographiclh
dxmath\xmmatrixorthographiclh.htm
dxmath
M:Microsoft.directx_sdk.matrix.XMMatrixOrthographicLH(float,float,float,float)
12/05/2018
Use DirectX..XMMatrixOrthographicLH, XMMatrixOrthographicLH, XMMatrixOrthographicLH method [DirectX Math Support APIs], dxmath.xmmatrixorthographiclh
directxmath.h
Windows
Use DirectX.
Windows
19H1
XMMatrixOrthographicLH
directxmath/XMMatrixOrthographicLH
c++
APIRef
kbSyntax
COM
DirectXMath.h
XMMatrixOrthographicLH

XMMatrixOrthographicLH function

-description

Builds an orthogonal projection matrix for a left-handed coordinate system.

-parameters

-param ViewWidth [in]

Width of the frustum at the near clipping plane.

-param ViewHeight [in]

Height of the frustum at the near clipping plane.

-param NearZ [in]

Distance to the near clipping plane.

-param FarZ [in]

Distance to the far clipping plane.

-returns

Returns the orthogonal projection matrix.

-remarks

For typical usage, NearZ is less than FarZ. However, if you flip these values so FarZ is less than NearZ, the result is an inverted z buffer (also known as a "reverse z buffer") which can provide increased floating-point precision.

NearZ and FarZ cannot be the same value and must be greater than 0.

All the parameters of XMMatrixOrthographicLH are distances in camera space.

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

-see-also

DirectXMath Library Matrix Functions

XMMatrixOrthographicRH