JTS Core 1.17.1
Packages
Classes
Search
About
Top
opposite(int): int
Bottom
Source
Classic
org.locationtech.jts.geomgraph
Class Position
Hierarchy:
Object
, Position
public class Position
A Position indicates the position of a Location relative to a graph component (Node, Edge, or Area).
Other
version: 1.7
public
static
final
int opposite(int position)
Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.