void removePointForID ( int id ) { for ( int i = 0 ; i < pointCount ; i ++ ) { if ( points [ i ] . id == id ) { if ( i < pointCount - 1 ) { System . arraycopy ( points , i + 1 , points , i , pointCount - i - 1 ) ; points [ pointCount - 1 ] = null ; } pointCount -- ; } } }
Removes the point with the given ID