ptNotInList static method

Coordinate? ptNotInList(
  1. List<Coordinate> testPts,
  2. List<Coordinate> pts
)

Finds a point in a list of points which is not contained in another list of points @param testPts the {@link Coordinate}s to test @param pts an array of {@link Coordinate}s to test the input points against @return a {@link Coordinate} from testPts which is not in pts, ' or null

Implementation

static Coordinate? ptNotInList(
    List<Coordinate> testPts, List<Coordinate> pts) {
  for (int i = 0; i < testPts.length; i++) {
    Coordinate testPt = testPts[i];
    if (CoordinateArrays.indexOf(testPt, pts) < 0) return testPt;
  }
  return null;
}