Class ConflictTest

java.lang.Object
org.opentrafficsim.road.network.lane.ConflictTest
All Implemented Interfaces:
EventListener, EventListener

public final class ConflictTest extends Object implements 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 Details

    • testConstructor

      @Test public void testConstructor() throws NetworkException
      Test the Conflict class.
      Throws:
      NetworkException - on error
    • intersections

      public Set<Point2d> intersections(Polygon2d a, Polygon2d b)
      Find all 2D (ignoring Z) intersections between two OtsLine2d objects.
      Parameters:
      a - the first polyline
      b - the second polyline
      Returns:
      the intersections
    • notify

      public void notify(Event event)
      Specified by:
      notify in interface EventListener