コード例 #1
0
ファイル: FlipRotateSet.cs プロジェクト: leofun01/Transformer
        public override bool IsSupersetOf(IFiniteSet <T> other)
        {
            FlipRotateSet <T, P> o = other as FlipRotateSet <T, P>;

            return(ReferenceEquals(this, other) || (
                       !ReferenceEquals(o, null) &&
                       _dim >= o._dim &&
                       (Type & o.Type) == o.Type
                       ) || base.IsSupersetOf(other));
        }
コード例 #2
0
ファイル: FlipRotateSet.cs プロジェクト: leofun01/Transformer
        public override bool Equals(IFiniteSet <T> other)
        {
            FlipRotateSet <T, P> o = other as FlipRotateSet <T, P>;

            return(ReferenceEquals(this, other) || (
                       !ReferenceEquals(o, null) &&
                       _dim == o._dim &&
                       Type == o.Type
                       ) || base.Equals(other));
        }