Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float targetX=(float) (Math.cos(Math.toRadians(degrees))*lineSize);
- float targetY=(float) (Math.sin(Math.toRadians(degrees))*lineSize);
- for(int x=0; x<Math.round(targetX); x++) {
- int y=Math.round(targetY/targetX*x);
- buffer[x+25][y+25]='o';
- }
Advertisement
Add Comment
Please, Sign In to add comment