Class: EdgeIntersection

jsts.geomgraph.EdgeIntersection

new EdgeIntersection(coord, segmentIndex, dist)

Parameters:
Name Type Description
coord Coordinate
segmentIndex int
dist double
Source:

Members

coord :Coordinate

the point of intersection
Type:
  • Coordinate
Source:

dist :double

the edge distance of this point along the containing line segment
Type:
  • double
Source:

segmentIndex :int

the index of the containing line segment in the parent edge
Type:
  • int
Source:

Methods

compare(segmentIndex, dist) → {int|int|int}

Parameters:
Name Type Description
segmentIndex int
dist double
Source:
Returns:
  • -1 this EdgeIntersection is located before the argument location.
    Type
    int
  • 0 this EdgeIntersection is at the argument location.
    Type
    int
  • 1 this EdgeIntersection is located after the argument location.
    Type
    int

compareTo(other) → {int}

Parameters:
Name Type Description
other EdgeIntersection
Source:
Returns:
Type
int

getCoordinate() → {Coordinate}

Source:
Returns:
Type
Coordinate

getDistance() → {double}

Source:
Returns:
Type
double

getSegmentIndex() → {int}

Source:
Returns:
Type
int

isEndPoint(maxSegmentIndex) → {boolean}

Parameters:
Name Type Description
maxSegmentIndex int
Source:
Returns:
Type
boolean