Advertisement
Guest User

Untitled

a guest
May 28th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. y = R;
  2. x = 1;
  3. delta_E = 2*x+3;
  4. delta_SE = 2*(x-y)+5;
  5. decision = (x+1)*(x+1)+(y+0.5)*(y+0.5)-R*R;
  6. circle_tab(x,y) = 1;
  7.  
  8. while(y>x)
  9.  
  10. if(decision < 0)
  11. decision = decision + delta_E;
  12. delta_E = delta_E + 2;
  13. delta_SE = delta_SE + 2;
  14. else
  15. y=y-1;
  16. decision = decision + delta_SE;
  17. delta_E = delta_E + 2;
  18. delta_SE = delta_SE + 4;
  19. end
  20. x = x +1;
  21. circle_tab(x,y) = 1;
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement