Matrix4x4.CreateOrthographic(Single, Single, Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an orthographic perspective matrix from the given view volume dimensions.
public:
static System::Numerics::Matrix4x4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane);
public static System.Numerics.Matrix4x4 CreateOrthographic (float width, float height, float zNearPlane, float zFarPlane);
static member CreateOrthographic : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateOrthographic (width As Single, height As Single, zNearPlane As Single, zFarPlane As Single) As Matrix4x4
Parameters
- width
- Single
The width of the view volume.
- height
- Single
The height of the view volume.
- zNearPlane
- Single
The minimum Z-value of the view volume.
- zFarPlane
- Single
The maximum Z-value of the view volume.
Returns
The orthographic projection matrix.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.