private double[] matrix(double[][] turn, double[] vector) {
		double[] newVector = new double[3];
		
		for (int j=0; j<3; j++) {
			double sum = 0;
			for (int i=0; i<3; i++) {
				//System.out.print(turn[j][i] + " ");
				sum += turn[j][i] * vector[i];
			}
			//System.out.println();
			newVector[j] = sum;
		}
		
		return newVector;
	}