public override bool Equals(object obj) { Line line = (Line)obj; if ((IsDoubleEqual(line.Slope.GetValueOrDefault(), Slope.GetValueOrDefault())) && (IsDoubleEqual(line.Intercept, Intercept))) { return(true); } return(false); }
public override int GetHashCode() { return((int)(Slope.GetValueOrDefault() * 1000) | (int)(Intercept * 1000)); }