@Test(expected = InvalidTransformException.class) public void testSetRotationReadOnlyMatrix3() { final ValidatingTransform vt1 = new ValidatingTransform(); final Matrix3 rotation = new Matrix3(); vt1.setRotation(rotation); // good rotation.setM00(Double.NaN); vt1.setRotation(rotation); // bad }
result.setM00(1.0 - (yy + zz)); result.setM01(xy - zw); result.setM02(xz + yw);
result.setM00(1.0 - (yy + zz)); result.setM01(xy - zw); result.setM02(xz + yw);
assertEquals(Matrix3.IDENTITY, mat3A); mat3A.setM00(0.0); mat3A.setM01(0.1); mat3A.setM02(0.2);