Class LaneAnimation.CenterLine

java.lang.Object
org.opentrafficsim.draw.road.LaneAnimation.CenterLine
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, OtsShape, LineLocatable
Enclosing class:
LaneAnimation

public static class LaneAnimation.CenterLine extends Object implements LineLocatable
Draw center line of a lane.
  • Method Details

    • getLocation

      public final DirectedPoint2d getLocation()
      Specified by:
      getLocation in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface OtsShape
    • getRelativeContour

      public Polygon2d getRelativeContour()
      Specified by:
      getRelativeContour in interface OtsShape
    • getAbsoluteContour

      public Polygon2d getAbsoluteContour()
      Specified by:
      getAbsoluteContour in interface OtsShape
    • getCenterLine

      public PolyLine2d getCenterLine()
      Returns the center line.
      Returns:
      the center line
    • getLine

      public PolyLine2d getLine()
      Description copied from interface: LineLocatable
      Returns line representation of this object in object coordinates.
      Specified by:
      getLine in interface LineLocatable
      Returns:
      line representation of this object in object coordinates
    • getZ

      public double getZ()
      Specified by:
      getZ in interface nl.tudelft.simulation.dsol.animation.Locatable
    • toString

      public String toString()
      Overrides:
      toString in class Object