Voronoi.Algorithms.FortuneHelpers.Vector.Equals C# (CSharp) Method

Equals() public method

Compares this vector with another one
public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            Vector B = obj as Vector;
            if(B==null || data.Length != B.data.Length)
                return false;
            int i;
            for(i=0;i<data.Length;i++)
            {
                if(/*!data[i].Equals(B.data[i]) && */Math.Abs(data[i]-B.data[i])>1e-10)
                    return false;
            }
            return true;
        }