public ShapeTileBox screen_to_board(Rectangle p_rect){
  PlaPointFloat corner_1=screen_to_board(new Point2D.Double(p_rect.getX(),p_rect.getY()));
  PlaPointFloat corner_2=screen_to_board(new Point2D.Double(p_rect.getX() + p_rect.getWidth(),p_rect.getY() + p_rect.getHeight()));
  int llx=(int)Math.floor(Math.min(corner_1.v_x,corner_2.v_x));
  int lly=(int)Math.floor(Math.min(corner_1.v_y,corner_2.v_y));
  int urx=(int)Math.ceil(Math.max(corner_1.v_x,corner_2.v_x));
  int ury=(int)Math.ceil(Math.max(corner_1.v_y,corner_2.v_y));
  return new ShapeTileBox(llx,lly,urx,ury);
}

public ShapeTileBox screen_to_board ( Rectangle p_rect ) { PlaPointFloat corner_1 = screen_to_board ( new Point2D . Double ( p_rect . getX ( ) , p_rect . getY ( ) ) ) ; PlaPointFloat corner_2 = screen_to_board ( new Point2D . Double ( p_rect . getX ( ) + p_rect . getWidth ( ) , p_rect . getY ( ) + p_rect . getHeight ( ) ) ) ; int llx = ( int ) Math . floor ( Math . min ( corner_1 . v_x , corner_2 . v_x ) ) ; int lly = ( int ) Math . floor ( Math . min ( corner_1 . v_y , corner_2 . v_y ) ) ; int urx = ( int ) Math . ceil ( Math . max ( corner_1 . v_x , corner_2 . v_x ) ) ; int ury = ( int ) Math . ceil ( Math . max ( corner_1 . v_y , corner_2 . v_y ) ) ; return new ShapeTileBox ( llx , lly , urx , ury ) ; }
transform a java . awt . rectangle to a geometry . planar . intbox if the internal rotation is not a multiple of pi / 2 , a bounding box of the rotated rectangular shape is returned .
