Esempio n. 1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || GetType() != o.GetType())
            {
                return(false);
            }

            DistanceToShapeValueSource that = (DistanceToShapeValueSource)o;

            if (!queryPoint.Equals(that.queryPoint))
            {
                return(false);
            }
            if (that.multiplier.CompareTo(multiplier) != 0)
            {
                return(false);
            }
            if (!shapeValueSource.Equals(that.shapeValueSource))
            {
                return(false);
            }
            if (!distCalc.Equals(that.distCalc))
            {
                return(false);
            }

            return(true);
        }