Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. private static double[][] polygon = {
  2.             {100, 150, 1},
  3.             {150, 150, 1},
  4.             {150, 100, 1},
  5.             {125, 80, 1},
  6.             {100, 100, 1}
  7.     };
  8.  
  9. private static int angle = 90;
  10.  
  11. private static double[][] transformationMatrix = {
  12.             { Math.cos(a),  Math.sin(a), 0},
  13.             { -Math.sin(a),  Math.cos(a), 0},
  14.             {xR * (1 - Math.cos(a)) + yR * Math.sin(a), yR * (1 - Math.cos(a)) - xR * Math.sin(a), 1}
  15.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement