code: public static boolean contains3D(Coordinate[] coords, Coordinate coord) {
                  for (Coordinate coordinate : coords) {
                          if (coordinate.equals3D(coord)) {
                                  return true;
                          }
                  }
                  return false;
          }
docs: Check if a coordinate array contains a specific coordinate.
  
  The equality is done in 3D (z values ARE checked).
  
  @param coords
  @param coord
  @return