Package org.djutils.draw.curve
Class ClothoidTest
java.lang.Object
org.djutils.draw.curve.ClothoidTest
Tests the generation of clothoids with various input.
Copyright (c) 2023-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtestA()Test clothoids created with curvatures and an A-value.voidTest remaining aspects of the Clothoid constructors.voidTest clothoids created with curvatures and a length.voidTests that a clothoid offset is on the right side and at the right direction, for clothoids that are reflected or not, and clothoids that are opposite or not.voidTests whether clothoid between two directed points are correct.voidTests whether clothoid between two directed points on a line, or just not on a line, are correct.
-
Constructor Details
-
ClothoidTest
public ClothoidTest()
-
-
Method Details
-
testPoints
Tests whether clothoid between two directed points are correct. -
testClothoidConstructors
Test remaining aspects of the Clothoid constructors. -
testStraight
Tests whether clothoid between two directed points on a line, or just not on a line, are correct. This test is separate fromTestPoints()because the random procedure generates very few straight situations. -
testLength
Test clothoids created with curvatures and a length. -
testA
Test clothoids created with curvatures and an A-value. -
testOffset
Tests that a clothoid offset is on the right side and at the right direction, for clothoids that are reflected or not, and clothoids that are opposite or not.
-