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 voidTest the concatenate method.final voidTest the constructors of PolyLine3d.final voidTest the equals method.final voidTest that exception is thrown when it should be.final voidTest the extract and extractFraction methods.final voidTest the filtering constructors.final voidTest the getLocationExtended method and friends.static Stringmarker(double x, double y) Draw a X marker.final voidprintPath2D(Path2D path) Print a Path2D to the console.final voidTest the reverse and project methods.voidTest all constructors of a Line2d.voidTest the degenerate PolyLine3d.voidTest the debugging output methods.final voidtestFind()Test the find method.final voidTest other methods of PolyLine3d.voidProblem with limited precision when getting location almost at end.voidTest for a problem that occurred in OTS2.voidTest the hashCode and Equals methods.final voidTest the truncate method.
-
Constructor Details
-
PolyLine3dTest
public PolyLine3dTest()
-
-
Method Details
-
constructorsTest
Test the constructors of PolyLine3d. -
printPath2D
Print a Path2D to the console.- Parameters:
path- the path
-
testConstructors
Test all constructors of a Line2d. -
exceptionTest
Test that exception is thrown when it should be. -
locationExtendedTest
Test the getLocationExtended method and friends. -
filterTest
Test the filtering constructors. -
equalsTest
Test the equals method. -
concatenateTest
Test the concatenate method. -
reverseAndProjectTest
Test the reverse and project methods. -
extractTest
Test the extract and extractFraction methods. -
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 the truncate method. -
testExports
Test the debugging output methods. -
testToStringHashCodeAndEquals
Test the hashCode and Equals methods. -
testProjectProblem
Test for a problem that occurred in OTS2. -
testDegenerate
Test the degenerate PolyLine3d. -
marker
Draw a X marker.- Parameters:
x- x locationy- y location- Returns:
- String
-
testOTS2Problem
Problem with limited precision when getting location almost at end.
-