Package org.locationtech.jts.geomgraph
Class Position
java.lang.Object
org.locationtech.jts.geomgraph.Position
A Position indicates the position of a Location relative to a graph component
(Node, Edge, or Area).
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final int
opposite
(int position) Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
-
Field Details
-
ON
public static final int ONAn indicator that a Location is on a GraphComponent- See Also:
-
LEFT
public static final int LEFTAn indicator that a Location is to the left of a GraphComponent- See Also:
-
RIGHT
public static final int RIGHTAn indicator that a Location is to the right of a GraphComponent- See Also:
-
-
Constructor Details
-
Position
public Position()
-
-
Method Details
-
opposite
public static final int opposite(int position) Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
-