Package org.locationtech.jts.geom
Class Position
java.lang.Object
org.locationtech.jts.geom.Position
Indicates the position of a location relative to a
node or edge component of a planar topological structure.
- 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 ONSpecifies that a location is on a component- See Also:
-
LEFT
public static final int LEFTSpecifies that a location is to the left of a component- See Also:
-
RIGHT
public static final int RIGHTSpecifies that a location is to the right of a component- 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.
-