973 {
974 if (nearPlaneDistance <= 0f)
975 {
977 }
978 if (farPlaneDistance <= 0f)
979 {
981 }
982 if (nearPlaneDistance >= farPlaneDistance)
983 {
985 }
987 result.M11 = 2f * nearPlaneDistance / (right - left);
988 result.M12 = (result.M13 = (result.M14 = 0f));
989 result.M22 = 2f * nearPlaneDistance / (top - bottom);
990 result.M21 = (result.M23 = (result.M24 = 0f));
991 result.M31 = (left + right) / (right - left);
992 result.M32 = (top + bottom) / (top - bottom);
993 result.M33 = farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
994 result.M34 = -1f;
995 result.M43 = nearPlaneDistance * farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
996 result.M41 = (result.M42 = (result.M44 = 0f));
997 return result;
998 }
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)