Package org.opentrafficsim.core.geometry
Class ContinuousClothoidTest
java.lang.Object
org.opentrafficsim.core.geometry.ContinuousClothoidTest
Tests the generation of clothoids with various input.
Copyright (c) 2023-2024 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
testA()
Test clothoids created with curvatures and an A-value.void
Test clothoids created with curvatures and a length.void
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.void
Tests whether clothoid between two directed points are correct.void
Tests whether clothoid between two directed points on a line, or just not on a line, are correct.
-
Constructor Details
-
ContinuousClothoidTest
public ContinuousClothoidTest()
-
-
Method Details
-
testPoints
Tests whether clothoid between two directed points are correct.- Throws:
OtsGeometryException
- if segment number is not available on the line
-
testStraight
@Test public void 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.- Throws:
OtsGeometryException
- if segment number is not available on the line
-
testA
Test clothoids created with curvatures and an A-value.- Throws:
OtsGeometryException
- if segment number is not available on the line
-
testOffset
@Test public void 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.
-