Esempio n. 1
0
        public override bool Equals(Object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            Mat2 other = obj as Mat2;

            if (Utility.FE(this.mat[0, 0], other.mat[0, 0]) &&
                Utility.FE(this.mat[0, 1], other.mat[0, 1]) &&
                Utility.FE(this.mat[1, 0], other.mat[1, 0]) &&
                Utility.FE(this.mat[1, 1], other.mat[1, 1]))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public double Minor(int r, int c)
        {
            Mat2 sub = this.Sub(r, c);

            return(sub.Det());
        }