Package org.locationtech.jts.geomgraph
Class Position
- java.lang.Object
-
- org.locationtech.jts.geomgraph.Position
-
public class Position extends java.lang.Object
A Position indicates the position of a Location relative to a graph component (Node, Edge, or Area).- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description Position()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
opposite(int position)
Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
-
-
-
Field Detail
-
ON
public static final int ON
An indicator that a Location is on a GraphComponent- See Also:
- Constant Field Values
-
LEFT
public static final int LEFT
An indicator that a Location is to the left of a GraphComponent- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT
An indicator that a Location is to the right of a GraphComponent- See Also:
- Constant Field Values
-
-