Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.  double tempx =
  2.  (secondX)*Math.cos(Math.toRadians(degree))+(secondY)*Math.sin(Math.toRadians(degree));
  3.  double tempy =
  4. (secondX)*Math.sin(Math.toRadians(degree))+(secondY)*Math.cos(Math.toRadians(degree));
  5.  
  6.         Line2D line = new Line2D.Double(start.width,
  7.                                         start.height,
  8.                                         tempx,
  9.                                         tempy);
  10.         secondX = tempx;
  11.         secondY = tempy;
  12.         return line;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement