public static class HeadwayConflict.Width extends Object
Copyright (c) 2013-2018 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,
org.djunits.value.vdouble.vector.LengthVector width) |
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Length |
getWidth(double fraction)
Returns the width at the given fraction.
|
static HeadwayConflict.Width |
linear(org.djunits.value.vdouble.scalar.Length startWidth,
org.djunits.value.vdouble.scalar.Length endWidth)
Returns a linear width progression.
|
public Width(double[] fractions,
org.djunits.value.vdouble.vector.LengthVector width)
fractions - double[]; fractions, from 0 to 1width - LengthVector; vector of equal length with widthspublic org.djunits.value.vdouble.scalar.Length getWidth(double fraction)
throws org.djunits.value.ValueException
fraction - double; fraction from 0 to 1org.djunits.value.ValueException - when index is out of boundspublic static HeadwayConflict.Width linear(org.djunits.value.vdouble.scalar.Length startWidth, org.djunits.value.vdouble.scalar.Length endWidth)
startWidth - Length; start widthendWidth - Length; end widthCopyright © 2014–2018 Delft University of Technology. All rights reserved.