Class ConflictTest
java.lang.Object
org.opentrafficsim.road.network.lane.ConflictTest
- All Implemented Interfaces:
EventListener,EventListener
Test the Conflict class.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Peter Knoppers
-
Method Summary
Modifier and TypeMethodDescriptionintersections(Polygon2d a, Polygon2d b) Find all 2D (ignoring Z) intersections between two OtsLine2d objects.voidvoidTest the Conflict class.
-
Method Details
-
testConstructor
Test the Conflict class.- Throws:
NetworkException- on error
-
intersections
Find all 2D (ignoring Z) intersections between two OtsLine2d objects.- Parameters:
a- the first polylineb- the second polyline- Returns:
- the intersections
-
notify
- Specified by:
notifyin interfaceEventListener
-