Advertisement
Guest User

Untitled

a guest
Dec 28th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. int NUM_PIZZA_SLICES=90;
  2. for(int i = 0; i <= NUM_PIZZA_SLICES; i++){ //NUM_PIZZA_SLICES decides how round the circle looks.
  3. double SUBDIVISIONS=180;
  4. double angle = Math.PI * 2 * i / SUBDIVISIONS;
  5. GL11.glVertex2f((float) Math.cos(angle), (float) Math.sin(angle));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement