code: public static boolean contains2D(Coordinate[] coords, Coordinate coord) {
          for (Coordinate coordinate : coords) {
              if (coordinate.equals2D(coord)) {
                  return true;
              }
          }
          return false;
      }
docs: Checks if a coordinate array contains a specific coordinate.
  
  The equality is done only in 2D (z values are not checked).
  
  @param coords
  @param coord
  @return