Class LocatePoint
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.vissim.LocatePoint
-
public class LocatePoint extends Object
Computes the location of the point a given distance along a LineString.
-
-
Constructor Summary
Constructors Constructor Description LocatePoint(org.locationtech.jts.geom.LineString line, double distance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the index of the segment containing the computed point.org.locationtech.jts.geom.CoordinategetPoint()static org.locationtech.jts.geom.CoordinatepointAlongLine(org.locationtech.jts.geom.LineString line, double distance)static org.locationtech.jts.geom.CoordinatepointAlongSegment(org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1, double distance)
-
-
-
Method Detail
-
pointAlongSegment
public static org.locationtech.jts.geom.Coordinate pointAlongSegment(org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1, double distance)
-
pointAlongLine
public static org.locationtech.jts.geom.Coordinate pointAlongLine(org.locationtech.jts.geom.LineString line, double distance)
-
getPoint
public org.locationtech.jts.geom.Coordinate getPoint()
-
getIndex
public int getIndex()
Returns the index of the segment containing the computed point.- Returns:
- the index
-
-