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-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 26, 2015
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CrossSectionSlice(Length relativeLength, Length designLineOffset, Length width)
Construct a new CrossSectionSlice.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Length
getDesignLineOffset()
Retrieve the design line offset.Length
getRelativeLength()
Retrieve the relative length.Length
getWidth()
Retrieve the width.String
toString()
-
-
-
Constructor Detail
-
CrossSectionSlice
public CrossSectionSlice(Length relativeLength, Length designLineOffset, Length width)
Construct a new CrossSectionSlice.- Parameters:
relativeLength
- Length; the relative position from the start, measured along the design line of the parent linkdesignLineOffset
- Length; the lateral offset from the design line of the parentLink at the relative lengthwidth
- Length; the width, positioned symmetrically around the position at the relative length
-
-
Method Detail
-
getRelativeLength
public final Length getRelativeLength()
Retrieve the relative length.- Returns:
- Length; the relativeLength
-
getDesignLineOffset
public final Length getDesignLineOffset()
Retrieve the design line offset.- Returns:
- Length; designLineOffset
-
getWidth
public final Length getWidth()
Retrieve the width.- Returns:
- Length; the width
-
-