/// <summary> /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(Gradient other) { return(PaletteBailout.Equals(other.PaletteBailout) && MaxIterationColor == other.MaxIterationColor && PaletteScale.Equals(other.PaletteScale) && Shift.Equals(other.Shift) && LogIndex == other.LogIndex && RootIndex == other.RootIndex && Root.Equals(other.Root) && MinIterations == other.MinIterations && IndexScale.Equals(other.IndexScale) && Weight.Equals(other.Weight)); }
/// <summary> /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { var hashCode = PaletteBailout.GetHashCode(); hashCode = (hashCode * 397) ^ MaxIterationColor.GetHashCode(); hashCode = (hashCode * 397) ^ PaletteScale.GetHashCode(); hashCode = (hashCode * 397) ^ Shift.GetHashCode(); hashCode = (hashCode * 397) ^ LogIndex.GetHashCode(); hashCode = (hashCode * 397) ^ RootIndex.GetHashCode(); hashCode = (hashCode * 397) ^ Root.GetHashCode(); hashCode = (hashCode * 397) ^ MinIterations; hashCode = (hashCode * 397) ^ IndexScale.GetHashCode(); hashCode = (hashCode * 397) ^ Weight.GetHashCode(); return(hashCode); } }