[−][src]Function directx_math::XMMatrixOrthographicRH
pub fn XMMatrixOrthographicRH(
ViewWidth: f32,
ViewHeight: f32,
NearZ: f32,
FarZ: f32
) -> XMMATRIX
Builds an orthogonal projection matrix for a right-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 XMMatrixOrthographicRH are distances in camera space.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMMatrixOrthographicRH