public Matrix2 Inverse() { float det = Determinant; if (det == 0) { return(null); } return(Matrix2.CreateColumnMajor(rc11, -rc10, -rc01, rc00).Scale(1f / det)); }
public static Matrix2 CreateDiagonal(float v00, float v11) { return(Matrix2.CreateColumnMajor(v00, 0, 0, v11)); }