Package org.djutils.draw.line
Class PolyLine3dTest
java.lang.Object
org.djutils.draw.line.PolyLine3dTest
TestLine3d.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 TypeMethodDescriptionfinal void
Test the concatenate method.final void
Test the constructors of PolyLine3d.final void
Test the equals method.final void
Test that exception is thrown when it should be.final void
Test the extract and extractFraction methods.final void
Test the filtering constructors.final void
Test the getLocationExtended method and friends.static String
marker
(double x, double y) Draw a X marker.final void
printPath2D
(Path2D path) Print a Path2D to the console.final void
Test the reverse and project methods.void
Test all constructors of a Line2d.void
Test the degenerate PolyLine3d.void
Test the debugging output methods.final void
testFind()
Test the find method.final void
Test other methods of PolyLine3d.void
Problem with limited precision when getting location almost at end.void
Test for a problem that occurred in OTS2.void
Test the hashCode and Equals methods.final void
Test the truncate method.
-
Constructor Details
-
PolyLine3dTest
public PolyLine3dTest()
-
-
Method Details
-
constructorsTest
@Test public final void constructorsTest()Test the constructors of PolyLine3d. -
printPath2D
Print a Path2D to the console.- Parameters:
path
- the path
-
testConstructors
@Test public void testConstructors()Test all constructors of a Line2d. -
exceptionTest
@Test public final void exceptionTest()Test that exception is thrown when it should be. -
locationExtendedTest
@Test public final void locationExtendedTest()Test the getLocationExtended method and friends. -
filterTest
@Test public final void filterTest()Test the filtering constructors. -
equalsTest
@Test public final void equalsTest()Test the equals method. -
concatenateTest
@Test public final void concatenateTest()Test the concatenate method. -
reverseAndProjectTest
@Test public final void reverseAndProjectTest()Test the reverse and project methods. -
extractTest
@Test public final void extractTest()Test the extract and extractFraction methods. -
testOtherMethods
@Test public final void testOtherMethods()Test other methods of PolyLine3d. -
testFind
@Test public final void testFind() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionTest the find method.- Throws:
SecurityException
- if that happens uncaught; this test has failedNoSuchMethodException
- if that happens uncaught; this test has failedInvocationTargetException
- if that happens uncaught; this test has failedIllegalArgumentException
- if that happens uncaught; this test has failedIllegalAccessException
- if that happens uncaught; this test has failed
-
testTruncate
@Test public final void testTruncate()Test the truncate method. -
testExports
@Test public void testExports()Test the debugging output methods. -
testToStringHashCodeAndEquals
@Test public void testToStringHashCodeAndEquals()Test the hashCode and Equals methods. -
testProjectProblem
@Test public void testProjectProblem()Test for a problem that occurred in OTS2. -
testDegenerate
@Test public void testDegenerate()Test the degenerate PolyLine3d. -
marker
Draw a X marker.- Parameters:
x
- x locationy
- y location- Returns:
- String
-
testOTS2Problem
@Test public void testOTS2Problem()Problem with limited precision when getting location almost at end.
-