Function directx_math::XMMatrixOrthographicLH[][src]

pub fn XMMatrixOrthographicLH(
    ViewWidth: f32,
    ViewHeight: f32,
    NearZ: f32,
    FarZ: f32
) -> XMMATRIX

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

Parameters

ViewWidth Width of the frustum at the near clipping plane.

ViewHeight Height of the frustum at the near clipping plane.

NearZ Distance to the near clipping plane.

FarZ Distance to the far clipping plane.

Return value

Returns the orthogonal projection matrix.

Remarks

All the parameters of XMMatrixOrthographicLH are distances in camera space.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMMatrixOrthographicLH