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-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
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.djutils.draw.point.Point2d>
intersections
(org.djutils.draw.line.Polygon2d a, org.djutils.draw.line.Polygon2d b) Find all 2D (ignoring Z) intersections between two OtsLine2d 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
public Set<org.djutils.draw.point.Point2d> intersections(org.djutils.draw.line.Polygon2d a, org.djutils.draw.line.Polygon2d b) Find all 2D (ignoring Z) intersections between two OtsLine2d objects.- Parameters:
a
- Polygon2d; the first polylineb
- Polygon2d; the second polyline- Returns:
- Set<Point2d>; the intersections
-
notify
- Specified by:
notify
in interfaceorg.djutils.event.EventListener
- Throws:
RemoteException
-