Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args)
- {
- double[][] punkt = {
- {1},
- {0},
- {0}
- };
- double[][] przesuniecie = {
- {1, 0, 2},
- {0, 1, 2},
- {0, 0, 1}
- };
- double[][] rezultat = new double[3][1];
- for(int i = 0; i < rezultat.length; ++i){
- for(int index = 0; index < punkt.length; ++index){
- rezultat[index][0] += punkt[index][0] * przesuniecie[i][index];
- }
- }
- for(double[] t : rezultat){
- for(double d : t) System.out.print(d + " ");
- System.out.println("");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement