Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static double[][] polygon = {
- {100, 150, 1},
- {150, 150, 1},
- {150, 100, 1},
- {125, 80, 1},
- {100, 100, 1}
- };
- private static int angle = 90;
- private static double[][] transformationMatrix = {
- { Math.cos(a), Math.sin(a), 0},
- { -Math.sin(a), Math.cos(a), 0},
- {xR * (1 - Math.cos(a)) + yR * Math.sin(a), yR * (1 - Math.cos(a)) - xR * Math.sin(a), 1}
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement