@Test public final void testShiftOnArrow() { vectorDefinition.shiftOnArrow(TestShiftValue); assertEquals( TestInitX2 - TestInitX1, vectorDefinition.getX2() - vectorDefinition.getX1(), NoDifferenceAllowed); assertEquals( TestInitY2 - TestInitY1, vectorDefinition.getY2() - vectorDefinition.getY1(), NoDifferenceAllowed); }
@Test public final void testRotate() { vectorDefinition.Rotate(TestRotation); assertEquals(TestRotatedX, vectorDefinition.getX2(), TestRotationAllowedDifference); assertEquals(TestRotatedY, vectorDefinition.getY2(), TestRotationAllowedDifference); }
@Test public final void testShiftOrigin() { vectorDefinition.shiftOrigin(); assertEquals(TestShiftedX2, vectorDefinition.getX2(), NoDifferenceAllowed); assertEquals(TestShiftedY2, vectorDefinition.getY2(), NoDifferenceAllowed); }
@Test public final void testScale() { vectorDefinition.Scale(TestScale); assertEquals(TestInitX2 * TestScale, vectorDefinition.getX2(), NoDifferenceAllowed); assertEquals(TestInitY2 * TestScale, vectorDefinition.getY2(), NoDifferenceAllowed); }
@Test public final void testSetX2() { vectorDefinition.setX2(TestNewX2); assertEquals(TestNewX2, vectorDefinition.getX2(), NoDifferenceAllowed); }
@Test public final void testGetX2() { assertEquals(TestInitX2, vectorDefinition.getX2(), NoDifferenceAllowed); }