Class: Position

jsts.geomgraph.Position

new Position()

A Position indicates the position of a Location relative to a graph component (Node, Edge, or Area).
Source:

Members

(static) LEFT :int

An indicator that a Location is to the left of a GraphComponent
Type:
  • int
Source:

(static) ON :int

An indicator that a Location is on a GraphComponent
Type:
  • int
Source:

(static) RIGHT :int

An indicator that a Location is to the right of a GraphComponent
Type:
  • int
Source:

Methods

(static) opposite(position) → {int}

Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
Parameters:
Name Type Description
position int
Source:
Returns:
Type
int