public boolean overPoint(float lat,float lon){
  AzimuthVar azVar=new AzimuthVar();
  Point2D pt=_forward(lat,lon,new Point2D.Float(),azVar);
  if (azVar.invalid_forward) {
    return false;
  }
  if ((pt.getX() < 0) || (pt.getX() > width) || (pt.getY() < 0)|| (pt.getY() > height)) {
    return false;
  }
  return true;
}

public boolean overPoint ( float lat , float lon ) { AzimuthVar azVar = new AzimuthVar ( ) ; Point2D pt = _forward ( lat , lon , new Point2D . Float ( ) , azVar ) ; if ( azVar . invalid_forward ) { return false ; } if ( ( pt . getX ( ) < 0 ) || ( pt . getX ( ) > width ) || ( pt . getY ( ) < 0 ) || ( pt . getY ( ) > height ) ) { return false ; } return true ; }
checks if the point is visible on the screen .
