Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 157;

            hash = hash * 953 + State.GetHashCode();
            hash = hash * 953 + Coordinates.GetHashCode();
            hash = hash * 953 + MeanEstimatedCoords.GetHashCode();
            hash = hash * 953 + Accuracy.GetHashCode();
            hash = hash * 953 + MeanError.GetHashCode();
            hash = hash * 953 + StandardDeviation.GetHashCode();
            return(hash);
        }
Exemplo n.º 2
0
        public override bool Equals(Object o)
        {
            if (ReferenceEquals(this, o))
            {
                return(true);
            }

            if (!(o is CalibrationPoint))
            {
                return(false);
            }

            var other = o as CalibrationPoint;

            return
                (this.State == other.State &&
                 Coordinates.Equals(other.Coordinates) &&
                 MeanEstimatedCoords.Equals(other.MeanEstimatedCoords) &&
                 Accuracy.Equals(other.Accuracy) &&
                 MeanError.Equals(other.MeanError) &&
                 StandardDeviation.Equals(other.StandardDeviation));
        }