Package org.djutils.draw
Class Transform3dTest
java.lang.Object
org.djutils.draw.Transform3dTest
Transform3dTest.java.
Copyright (c) 2020-2024 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Check what transform does to a unit vector.void
Reproducible test of multiple transformations on a bounding box.void
Test that the constructor creates an Identity matrix.void
Test the hashCode and equals methods.void
Test the matrix / vector multiplication.void
Test the translate, scale, rotate, shear and reflect methods.void
Check that toString returns something descriptive.void
Test transformation of a bounding box.void
Test the transform method.
-
Constructor Details
-
Transform3dTest
public Transform3dTest()
-
-
Method Details
-
testMatrixMultiplication
@Test public void testMatrixMultiplication()Test the matrix / vector multiplication. -
testConstructor
@Test public void testConstructor()Test that the constructor creates an Identity matrix. -
testTranslateScaleRotateShearAndReflect
@Test public void testTranslateScaleRotateShearAndReflect()Test the translate, scale, rotate, shear and reflect methods. -
transformTest
@Test public void transformTest()Test the transform method. -
transformBounds3dTest
@Test public void transformBounds3dTest()Test transformation of a bounding box. -
testBoundingBox3d
@Test public void testBoundingBox3d()Reproducible test of multiple transformations on a bounding box. -
toStringTest
@Test public void toStringTest()Check that toString returns something descriptive. -
main
Check what transform does to a unit vector.- Parameters:
args
- String[]; not used
-
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
-