Package org.djutils.draw
Class Transform2dTest
java.lang.Object
org.djutils.draw.Transform2dTest
Transform2dTest.java.
Copyright (c) 2020-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReproducible test of multiple transformations on a bounding rectangle.voidTest that the constructor creates an Identity matrix.voidTest the hashCode and equals methods.voidTest the matrix / vector multiplication.voidTest the translate, scale, rotate, shear and reflect methods.voidCheck that toString returns something descriptive.voidTest transformation of a bounding rectangle.voidTest the transform method.
-
Constructor Details
-
Transform2dTest
public Transform2dTest()
-
-
Method Details
-
testMatrixMultiplication
Test the matrix / vector multiplication. -
testConstructor
Test that the constructor creates an Identity matrix. -
testTranslateScaleRotateShearAndReflect
Test the translate, scale, rotate, shear and reflect methods. -
transformTest
Test the transform method. -
transformBounds2dTest
Test transformation of a bounding rectangle. -
testBoundingRectangle2d
Reproducible test of multiple transformations on a bounding rectangle. -
toStringTest
Check that toString returns something descriptive. -
testHashCodeAndEquals
@Test public void testHashCodeAndEquals() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessExceptionTest the hashCode and equals methods.- Throws:
SecurityException- if that happens uncaught; this test has failedNoSuchFieldException- if that happens uncaught; this test has failedIllegalAccessException- if that happens uncaught; this test has failedIllegalArgumentException- if that happens uncaught; this test has failed
-