Package org.djutils.draw
Class Transform2dTest
- java.lang.Object
-
- org.djutils.draw.Transform2dTest
-
public class Transform2dTest extends Object
Transform2dTest.java.Copyright (c) 2020-2023 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
-
-
Constructor Summary
Constructors Constructor Description Transform2dTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestBoundingRectangle2d()Reproducible test of multiple transformations on a bounding rectangle.voidtestConstructor()Test that the constructor creates an Identity matrix.voidtestHashCodeAndEquals()Test the hashCode and equals methods.voidtestMatrixMultiplication()Test the matrix / vector multiplication.voidtestTranslateScaleRotateShearAndReflect()Test the translate, scale, rotate, shear and reflect methods.voidtoStringTest()Check that toString returns something descriptive.voidtransformBounds2dTest()Test transformation of a bounding rectangle.voidtransformTest()Test the transform method.
-
-
-
Method Detail
-
testMatrixMultiplication
public void testMatrixMultiplication()
Test the matrix / vector multiplication.
-
testConstructor
public void testConstructor()
Test that the constructor creates an Identity matrix.
-
testTranslateScaleRotateShearAndReflect
public void testTranslateScaleRotateShearAndReflect()
Test the translate, scale, rotate, shear and reflect methods.
-
transformTest
public void transformTest()
Test the transform method.
-
transformBounds2dTest
public void transformBounds2dTest()
Test transformation of a bounding rectangle.
-
testBoundingRectangle2d
public void testBoundingRectangle2d()
Reproducible test of multiple transformations on a bounding rectangle.
-
toStringTest
public void toStringTest()
Check that toString returns something descriptive.
-
testHashCodeAndEquals
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
-
-