119120121122123124125126127128129
Vertex gvert = e.nextVertex(); AirportSpecs gv = (AirportSpecs)gvert.element(); if ( (x >= gv.x() - RADIUS) && (x <= gv.x() + RADIUS) && (y >= gv.y() - RADIUS) && (y <= gv.y() + RADIUS) ) { return gvert; } }
120121122123124125126127128129130
AirportSpecs gv = (AirportSpecs)gvert.element(); if ( (x >= gv.x() - RADIUS) && (x <= gv.x() + RADIUS) && (y >= gv.y() - RADIUS) && (y <= gv.y() + RADIUS) ) { return gvert; } } return null;