Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateOrthographic()

static Matrix4x4 System.Numerics.Matrix4x4.CreateOrthographic ( float width,
float height,
float zNearPlane,
float zFarPlane )
inlinestatic

Definition at line 499 of file Matrix4x4.cs.

500 {
501 Matrix4x4 identity = Identity;
502 identity.M11 = 2f / width;
503 identity.M22 = 2f / height;
504 identity.M33 = 1f / (zNearPlane - zFarPlane);
505 identity.M43 = zNearPlane / (zNearPlane - zFarPlane);
506 return identity;
507 }
Matrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
Definition Matrix4x4.cs:93
static Matrix4x4 Identity
Definition Matrix4x4.cs:65

References System.Numerics.Matrix4x4.Identity.