Class ConflictTest
- java.lang.Object
-
- org.opentrafficsim.road.network.lane.ConflictTest
-
- All Implemented Interfaces:
Serializable
,EventListener
,EventListenerInterface
public class ConflictTest extends Object implements EventListenerInterface
Test the Conflict class.Copyright (c) 2013-2022 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConflictTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<OTSPoint3D>
intersections(OTSLine3D a, OTSLine3D b)
Find all 2D (ignoring Z) intersections between two OTSLine3D objects.void
notify(EventInterface event)
void
testConstructor()
Test the Conflict class.
-
-
-
Method Detail
-
testConstructor
public void testConstructor() throws NetworkException, OTSGeometryException
Test the Conflict class.- Throws:
NetworkException
- on errorOTSGeometryException
- on error
-
intersections
public Set<OTSPoint3D> intersections(OTSLine3D a, OTSLine3D b)
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
public final void notify(EventInterface event) throws RemoteException
- Specified by:
notify
in interfaceEventListenerInterface
- Throws:
RemoteException
-
-