public void rotateJmol(Matrix jmolRotation) { if ( jmolRotation != null) { double[] zyz = Calc.getZYZEuler(jmolRotation); DecimalFormat df = new DecimalFormat("0.##"); String script = "reset; rotate z " + df.format(zyz[0]) + "; rotate y " + df.format(zyz[1]) +"; rotate z " + df.format(zyz[2])+";"; executeCmd(script); } }