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-09-03 13:38:01 +0200 (Thu, 03 Sep 2015) $, @version $Revision: 1378 $, by $Author: averbraeck $,
initial version Oct 22, 2014
Constructor and Description |
---|
LaneLocation(Lane lane,
double fractionalLongitudinalPosition) |
LaneLocation(Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position) |
Modifier and Type | Method and Description |
---|---|
double |
getFractionalLongitudinalPosition() |
Lane |
getLane() |
org.djunits.value.vdouble.scalar.Length.Abs |
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, org.djunits.value.vdouble.scalar.Length.Rel 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 org.djunits.value.vdouble.scalar.Length.Abs getLongitudinalPosition()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.