UnityAI.Core.Fuzzy.FuzzyRuleBase.BitArrayEquality C# (CSharp) Méthode

BitArrayEquality() private méthode

Check if BitArrays are Equal
private BitArrayEquality ( System b1, System b2 ) : bool
b1 System
b2 System
Résultat bool
        private bool BitArrayEquality(System.Collections.BitArray b1, System.Collections.BitArray b2)
        {
            if (b1.Length != b2.Length)
                return false;

            bool[] leftArray = new bool[b1.Length];
            bool[] rightArray = new bool[b2.Length];

            for (int i = 0; i < leftArray.Length; i++)
            {
                if (leftArray[i] != rightArray[i])
                    return false;
            }
            return true;
        }