public boolean hasVertex ( float x , float y ) { if ( points . length == 0 ) { return false ; } checkPoints ( ) ; for ( int i = 0 ; i < points . length ; i += 2 ) { if ( ( points [ i ] == x ) && ( points [ i + 1 ] == y ) ) { return true ; } } return false ; }
Check if a particular location is a vertex of this polygon