コード例 #1
0
ファイル: Gradient.cs プロジェクト: tamchow/Mandelbrot-CS
 /// <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));
 }
コード例 #2
0
ファイル: Gradient.cs プロジェクト: tamchow/Mandelbrot-CS
 /// <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);
     }
 }