public void updateTransformation(double[][] newTransf, boolean updateCenter) {
		transformation = TransformationManager.matrixMultiplication(transformation, newTransf);
		double[][] coord = center.getTransformedCoordinates();
		double[][] t = TransformationManager.translation3D(-coord[0][0], -coord[0][1], -coord[0][2]);
		double[][] t1 = TransformationManager.translation3D(coord[0][0], coord[0][1], coord[0][2]);
		transformationToAply = TransformationManager.matrixMultiplication(TransformationManager.matrixMultiplication(t, transformation), t1);
		for(int i = 0; i < corners.size(); i++) {
			corners.get(i).update();
		}
		if (updateCenter) {
			updateCenter(newTransf);
		}
		coord = center.getTransformedCoordinates();
		Main.state = State.Drawing;
	}