structure with start and end of diameter of circles
Circle diameter [ ] = new Circle [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { diameter [ i ] = new Circle ( ) ; diameter [ i ] . start = ( c [ i ] - r [ i ] ) ; diameter [ i ] . end = ( c [ i ] + r [ i ] ) ; }