SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top