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

◆ CreateOrthographicOffCenter()

static Matrix4x4 System.Numerics.Matrix4x4.CreateOrthographicOffCenter ( float left,
float right,
float bottom,
float top,
float zNearPlane,
float zFarPlane )
inlinestatic

Definition at line 509 of file Matrix4x4.cs.

510 {
511 Matrix4x4 identity = Identity;
512 identity.M11 = 2f / (right - left);
513 identity.M22 = 2f / (top - bottom);
514 identity.M33 = 1f / (zNearPlane - zFarPlane);
515 identity.M41 = (left + right) / (left - right);
516 identity.M42 = (top + bottom) / (bottom - top);
517 identity.M43 = zNearPlane / (zNearPlane - zFarPlane);
518 return identity;
519 }
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.