Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double [][] punkt = {
- {1},
- {0},
- {0}
- };
- double [][] obrot = {
- {0, -1, 0},
- {1, 0, 0},
- {0, 0, 1}
- };
- double rezultat[][] = new double [3][1];
- for(int i = 0; i < punkt.length; i++) {
- int suma = 0;
- for(int j = 0; j < obrot[i].length; j++) {
- suma += obrot[i][j];
- }
- double wynik = punkt[i][0] * suma;
- rezultat[i][0] = wynik;
- System.out.println(rezultat[i][0]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement