void checkTransformation(AffineTransformation trans0, AffineTransformation trans1) { double[] m0 = trans0.getMatrixEntries(); double[] m1 = trans1.getMatrixEntries(); for (int i = 0; i < m0.length; i++) { assertEquals(m0[i], m1[i], 0.000005); } }