aeroson

Untitled

Oct 17th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. float targetX=(float) (Math.cos(Math.toRadians(degrees))*lineSize);
  2. float targetY=(float) (Math.sin(Math.toRadians(degrees))*lineSize);
  3.  
  4. for(int x=0; x<Math.round(targetX); x++) {
  5. int y=Math.round(targetY/targetX*x);
  6. buffer[x+25][y+25]='o';
  7. }
Advertisement
Add Comment
Please, Sign In to add comment