Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double tempx =
- (secondX)*Math.cos(Math.toRadians(degree))+(secondY)*Math.sin(Math.toRadians(degree));
- double tempy =
- (secondX)*Math.sin(Math.toRadians(degree))+(secondY)*Math.cos(Math.toRadians(degree));
- Line2D line = new Line2D.Double(start.width,
- start.height,
- tempx,
- tempy);
- secondX = tempx;
- secondY = tempy;
- return line;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement