Interface LineLocatable

All Superinterfaces:
nl.tudelft.simulation.dsol.animation.Locatable, OtsShape
All Known Subinterfaces:
AbstractLineAnimation.LaneBasedObjectData, BusStopAnimation.BusStopData, ConflictAnimation.ConflictData, LaneDetectorAnimation.LaneDetectorData, LaneDetectorAnimation.LoopDetectorData, LaneDetectorAnimation.SinkData, LinkAnimation.LinkData, StripeAnimation.StripeData, TrafficLightAnimation.TrafficLightData
All Known Implementing Classes:
LaneAnimation.CenterLine

public interface LineLocatable extends OtsShape
This class returns a line that represent the object.

Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Method Details

    • getLine

      PolyLine2d getLine()
      Returns line representation of this object in object coordinates.
      Returns:
      line representation of this object in object coordinates
    • signedDistance

      default double signedDistance(Point2d point)
      Signed distance function. The point must be relative. As this is a line object, only positive values are returned.
      Specified by:
      signedDistance in interface OtsShape
      Parameters:
      point - point for which distance is returned
      Returns:
      distance from point to these bounds
    • contains

      default boolean contains(Point2d point)
      Specified by:
      contains in interface OtsShape