Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. for (; iteration < 100; iteration++)
  2. {
  3. if (z.Real * z.Real + z.Imaginary * z.Imaginary >= 4)
  4. {
  5. foreach(int tIndex in tempHits)
  6. {
  7. hitCount[tIndex]++;
  8. if (hitCount[tIndex] > biggestHit) biggestHit = hitCount[tIndex];
  9. }
  10. tempHits.Clear();
  11. break;
  12. }
  13. //z = z.conjugate;
  14. z = z * z;
  15. z += c;
  16. if (iteration > 4)
  17. {
  18. int index = CalcIndex(z);
  19. if (index != Int32.MaxValue)
  20. tempHits.Add(index);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement