Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (; iteration < 100; iteration++)
- {
- if (z.Real * z.Real + z.Imaginary * z.Imaginary >= 4)
- {
- foreach(int tIndex in tempHits)
- {
- hitCount[tIndex]++;
- if (hitCount[tIndex] > biggestHit) biggestHit = hitCount[tIndex];
- }
- tempHits.Clear();
- break;
- }
- //z = z.conjugate;
- z = z * z;
- z += c;
- if (iteration > 4)
- {
- int index = CalcIndex(z);
- if (index != Int32.MaxValue)
- tempHits.Add(index);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement