public static class HeadwayConflict.Width extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
Width(double[] fractions,
LengthVector width) |
| Modifier and Type | Method and Description |
|---|---|
Length |
getWidth(double fraction)
Returns the width at the given fraction.
|
static HeadwayConflict.Width |
linear(Length startWidth,
Length endWidth)
Returns a linear width progression.
|
public Width(double[] fractions,
LengthVector width)
fractions - double[]; fractions, from 0 to 1width - LengthVector; vector of equal length with widthspublic Length getWidth(double fraction) throws ValueException
fraction - double; fraction from 0 to 1ValueException - when index is out of boundspublic static HeadwayConflict.Width linear(Length startWidth, Length endWidth)
startWidth - Length; start widthendWidth - Length; end widthCopyright © 2014–2019 Delft University of Technology. All rights reserved.