Пример #1
0
        public bool Equals(VectorInt other)
        {
            if (_hashCode != other.GetHashCode() || Length != other.Length)
            {
                return(false);
            }

            for (int i = 0; i < other.Length; ++i)
            {
                // ReSharper disable once CompareOfFloatsByEqualityOperator
                if (_values[i] != other._values[i])
                {
                    return(false);
                }
            }

            return(true);
        }
Пример #2
0
 public override int GetHashCode()
 {
     return(_innerVector.GetHashCode());
 }