Projection.CreateOrthographicMatrix

Projection.CreateOrthographicMatrix method

Calculates an orthographic projection matrix.

public static Matrix4x4 CreateOrthographicMatrix(float xmag, float ymag, float znear, float zfar)
ParameterTypeDescription
xmagSingleMagnification in the X axis.
ymagSingleMagnification in the Y axis.
znearSingleDistance to the near pane in the Z axis.
zfarSingleDistance to the far plane in the Z axis.

Return Value

A projection matrix

See Also