public static boolean contains2D ( Coordinate [ ] coords , Coordinate coord ) { for ( Coordinate coordinate : coords ) { if ( coordinate . equals2D ( coord ) ) { return true ; } } return false ; }
Checks if a coordinate array contains a specific coordinate .