@Test public void testSetMatchingFrame() throws Exception { Random random = new Random(544354); for (int i = 0; i < ITERATIONS; i++) { ReferenceFrame sourceFrame = EuclidFrameRandomTools.nextReferenceFrame(random, true); ReferenceFrame destinationFrame = EuclidFrameRandomTools.nextReferenceFrame(random, true); FrameMatrix3DReadOnly source = EuclidFrameRandomTools.nextFrameMatrix3D(random, sourceFrame); FixedFrameMatrix3DBasics actual = EuclidFrameRandomTools.nextFrameMatrix3D(random, destinationFrame); actual.setMatchingFrame(source); FrameMatrix3D expected = new FrameMatrix3D(source); expected.changeFrame(destinationFrame); EuclidCoreTestTools.assertMatrix3DEquals(expected, actual, EPSILON); } } }