921 {
922 if (nearPlaneDistance <= 0f)
923 {
925 }
926 if (farPlaneDistance <= 0f)
927 {
929 }
930 if (nearPlaneDistance >= farPlaneDistance)
931 {
933 }
935 result.M11 = 2f * nearPlaneDistance / width;
936 result.M12 = (result.M13 = (result.M14 = 0f));
937 result.M22 = 2f * nearPlaneDistance / height;
938 result.M21 = (result.M23 = (result.M24 = 0f));
939 result.M33 = farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
940 result.M31 = (result.M32 = 0f);
941 result.M34 = -1f;
942 result.M41 = (result.M42 = (result.M44 = 0f));
943 result.M43 = nearPlaneDistance * farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
944 return result;
945 }
static CultureInfo CurrentCulture
Matrix(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)