Class ConflictTest
java.lang.Object
org.opentrafficsim.road.network.lane.ConflictTest
- All Implemented Interfaces:
Serializable
,Remote
,EventListener
,org.djutils.event.EventListener
Test the Conflict class.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Peter Knoppers
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintersections
(OtsLine3d a, OtsLine3d b) Find all 2D (ignoring Z) intersections between two OtsLine3d objects.final void
notify
(org.djutils.event.Event event) void
Test the Conflict class.
-
Constructor Details
-
ConflictTest
public ConflictTest()
-
-
Method Details
-
testConstructor
Test the Conflict class.- Throws:
NetworkException
- on errorOtsGeometryException
- on error
-
intersections
Find all 2D (ignoring Z) intersections between two OtsLine3d objects.- Parameters:
a
- OtsLine3d; the first polylineb
- OtsLine3d; the second polyline- Returns:
- Set<OtsPoint3d>; the intersections
-
notify
- Specified by:
notify
in interfaceorg.djutils.event.EventListener
- Throws:
RemoteException
-