Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Methode floating.<br />
- * Bewegt die Sterne zum rechten Bildrand.
- */
- public void floating()
- {
- double angle = Math.toRadians(getRotation());
- int x = (int) Math.round(getX() + Math.cos(angle) * (double)GESCHWINDIGKEIT);
- int y = getY();
- setLocation(x, y);
- }
Add Comment
Please, Sign In to add comment