checkForRightmostCoordinate method

void checkForRightmostCoordinate(
  1. DirectedEdge de
)

Implementation

void checkForRightmostCoordinate(DirectedEdge de) {
  List<Coordinate> coord = de.getEdge().getCoordinates();
  for (int i = 0; i < coord.length - 1; i++) {
    // only check vertices which are the start or end point of a non-horizontal segment
    // <FIX> MD 19 Sep 03 - NO!  we can test all vertices, since the rightmost must have a non-horiz segment adjacent to it
    if (minCoord == null || coord[i].x > minCoord!.x) {
      minDe = de;
      minIndex = i;
      minCoord = coord[i];
    }
    //}
  }
}