示例#1
0
        public Matrix2 Inverse()
        {
            float det = Determinant;

            if (det == 0)
            {
                return(null);
            }

            return(Matrix2.CreateColumnMajor(rc11, -rc10, -rc01, rc00).Scale(1f / det));
        }
示例#2
0
 public static Matrix2 CreateDiagonal(float v00, float v11)
 {
     return(Matrix2.CreateColumnMajor(v00, 0, 0, v11));
 }