Package org.djutils.draw.line
Class PolyLine2dTest
java.lang.Object
org.djutils.draw.line.PolyLine2dTest
TestLine2d.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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidTest the concatenate method.final voidTest the constructors of PolyLine2d.final voidTest the filtering constructors.voidIssue #82.voidIssue #106.voidTest all constructors of a Line2d.voidTest the degenerate PolyLine2d.voidTest the debugging output methods.voidTest the offsetLine methods.voidTest the other methods of PolyLine2d.voidProblem with limited precision when getting location almost at end.voidTest construction of a Line2d from a Path2D with SEG_CLOSE.voidTest the projectRay method.voidTest the projectRay method.voidTest the hashCode and Equals methods.voidTest the transitionLine method.
- 
Constructor Details- 
PolyLine2dTestpublic PolyLine2dTest()
 
- 
- 
Method Details- 
constructorsTestTest the constructors of PolyLine2d.
- 
testPathWithCloseTest construction of a Line2d from a Path2D with SEG_CLOSE.
- 
testConstructorsTest all constructors of a Line2d.- Throws:
- RuntimeException- if that happens uncaught; this test has failed
 
- 
testOtherMethodsTest the other methods of PolyLine2d.
- 
concatenateTestTest the concatenate method.
- 
testOffsetLineTest the offsetLine methods.
- 
testProjectRayTransitionTest the projectRay method.
- 
testProjectRayTest the projectRay method.
- 
testExportsTest the debugging output methods.
- 
testTransitionLineTest the transitionLine method.
- 
filterTestTest the filtering constructors.
- 
testToStringHashCodeAndEqualsTest the hashCode and Equals methods.
- 
testDegenerateTest the degenerate PolyLine2d.
- 
testOTS2ProblemProblem with limited precision when getting location almost at end.
- 
getLocationProblemIssue #82.
- 
offsetLineProbleIssue #106.
 
-