public class LaneLocation extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-08-23 00:48:01 +0200 (Sun, 23 Aug 2015) $, @version $Revision: 1291 $, by $Author: averbraeck $,
initial version Oct 22, 2014
| Constructor and Description |
|---|
LaneLocation(Lane lane,
double fractionalLongitudinalPosition) |
LaneLocation(Lane lane,
DoubleScalar.Rel<LengthUnit> position) |
| Modifier and Type | Method and Description |
|---|---|
double |
getFractionalLongitudinalPosition() |
Lane |
getLane() |
DoubleScalar.Abs<LengthUnit> |
getLongitudinalPosition() |
public LaneLocation(Lane lane, double fractionalLongitudinalPosition)
lane - The lane of the location of a point relative to the GTU.fractionalLongitudinalPosition - The fractional position (between 0.0 and 1.0) of the reference point on the lane.public LaneLocation(Lane lane, DoubleScalar.Rel<LengthUnit> position)
lane - The lane of the location of a point relative to the GTU.position - The position as a length of the reference point on the lane.public final Lane getLane()
public final double getFractionalLongitudinalPosition()
public final DoubleScalar.Abs<LengthUnit> getLongitudinalPosition()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.