Class CrossSectionSlice

java.lang.Object
org.opentrafficsim.road.network.lane.CrossSectionSlice
All Implemented Interfaces:
Serializable

public class CrossSectionSlice extends Object implements Serializable
The CrossSectionSlice provides the width and offset at a relative length of a CrossSectionElement.

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:
Alexander Verbraeck, Peter Knoppers
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrossSectionSlice(org.djunits.value.vdouble.scalar.Length relativeLength, org.djunits.value.vdouble.scalar.Length offset, org.djunits.value.vdouble.scalar.Length width)
    Construct a new CrossSectionSlice.
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.djunits.value.vdouble.scalar.Length
    Retrieve the design line offset.
    final org.djunits.value.vdouble.scalar.Length
    Retrieve the relative length.
    final org.djunits.value.vdouble.scalar.Length
    Retrieve the width.
    final String

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CrossSectionSlice

      public CrossSectionSlice(org.djunits.value.vdouble.scalar.Length relativeLength, org.djunits.value.vdouble.scalar.Length offset, org.djunits.value.vdouble.scalar.Length width)
      Construct a new CrossSectionSlice.
      Parameters:
      relativeLength - Length; the relative position from the start, measured along the design line of the parent link
      offset - Length; the lateral offset from the design line of the parentLink at the relative length
      width - Length; the width, positioned symmetrically around the position at the relative length
  • Method Details

    • getRelativeLength

      public final org.djunits.value.vdouble.scalar.Length getRelativeLength()
      Retrieve the relative length.
      Returns:
      Length; the relativeLength
    • getOffset

      public final org.djunits.value.vdouble.scalar.Length getOffset()
      Retrieve the design line offset.
      Returns:
      Length; offset
    • getWidth

      public final org.djunits.value.vdouble.scalar.Length getWidth()
      Retrieve the width.
      Returns:
      Length; the width
    • toString

      public final String toString()
      Overrides:
      toString in class Object