XMMatrixOrthographicLH

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

Syntax

XMMATRIX XMMatrixOrthographicLH(
         float ViewWidth,
         float ViewHeight,
         float NearZ,
         float FarZ
)  

Parameters

ViewWidth
Type: float 

Width of the frustum at the near clipping plane.

ViewHeight
Type: float 

Height of the frustum at the near clipping plane.

NearZ
Type: float 

Distance to the near clipping plane.

FarZ
Type: float 

Distance to the far clipping plane.

Return value

Type: XMMATRIX 

Returns the orthogonal projection matrix.

Remarks

All the parameters of XMMatrixOrthographicLH are distances in camera space.

Requirements

Header: Declared in directxmath.h.