/* 281 */ return RC;
/* */ }
/* */
/* */ public Rectangle2D getBounds2D(ParameterBlock paramBlock)
/* */ {
/* 289 */ RenderableImage source = paramBlock.getRenderableSource(0);
/* */
/* 291 */ float x_center = paramBlock.getFloatParameter(0);
/* 292 */ float y_center = paramBlock.getFloatParameter(1);
/* 293 */ float angle = paramBlock.getFloatParameter(2);
/* 294 */ Interpolation interp = (Interpolation)paramBlock.getObjectParameter(3);
/* */
/* 302 */ int dangle = 0;
/* 303 */ double tmp_angle = 180.0F * angle / 3.141592653589793D;
/* 304 */ double rnd_angle = Math.round(tmp_angle);
/* */
/* 306 */ if (Math.abs(rnd_angle - tmp_angle) < 0.0001D)
/* 307 */ dangle = (int)rnd_angle;
/* */ else {
/* 309 */ dangle = (int)tmp_angle;
/* */ }
/* */
/* 315 */ if (dangle % 360 == 0) {
/* 316 */ return new Rectangle2D.Float(source.getMinX(), source.getMinY(), source.getWidth(), source.getHeight());
/* */ }
/* */
/* 325 */ float x0 = source.getMinX();
/* 326 */ float y0 = source.getMinY();
/* 327 */ float s_width = source.getWidth();
/* 328 */ float s_height = source.getHeight();
/* 329 */ float x1 = x0 + s_width - 1.0F;
/* 330 */ float y1 = y0 + s_height - 1.0F;
/* */
/* 332 */ float tx0 = 0.0F;
/* 333 */ float ty0 = 0.0F;
/* 334 */ float tx1 = 0.0F;
/* 335 */ float ty1 = 0.0F;
/* */
/* 337 */ if (dangle % 270 == 0) {
/* 338 */ if (dangle < 0)
/* */ {
/* 340 */ tx0 = s_height - y1 - 1.0F;
/* 341 */ ty0 = x0;
/* 342 */ tx1 = s_height - y0 - 1.0F;
/* 343 */ ty1 = x1;
/* 344 */ return new Rectangle2D.Float(tx0, ty0, tx1 - tx0 + 1.0F, ty1 - ty0 + 1.0F);
/* */ }
/* */
/* 350 */ tx0 = y0;
/* 351 */ ty0 = s_width - x1 - 1.0F;
/* 352 */ tx1 = y1;
/* 353 */ ty1 = s_width - x0 - 1.0F;
/* 354 */ return new Rectangle2D.Float(tx0, ty0, tx1 - tx0 + 1.0F, ty1 - ty0 + 1.0F);
/* */ }
/* */
/* 361 */ if (dangle % 180 == 0) {
/* 362 */ tx0 = s_width - x1 - 1.0F;
/* 363 */ ty0 = s_height - y1 - 1.0F;
/* 364 */ tx1 = s_width - x0 - 1.0F;
/* 365 */ ty1 = s_height - y0 - 1.0F;
/* */
/* 367 */ return new Rectangle2D.Float(tx0, ty0, tx1 - tx0 + 1.0F, ty1 - ty0 + 1.0F);
/* */ }
/* */
/* 373 */ if (dangle % 90 == 0) {
/* 374 */ if (dangle < 0)
/* */ {
/* 376 */ tx0 = y0;
/* 377 */ ty0 = s_width - x1 - 1.0F;
/* 378 */ tx1 = y1;
/* 379 */ ty1 = s_width - x0 - 1.0F;
/* 380 */ return new Rectangle2D.Float(tx0, ty0, tx1 - tx0 + 1.0F, ty1 - ty0 + 1.0F);
/* */ }
/* */
/* 386 */ tx0 = s_height - y1 - 1.0F;
/* 387 */ ty0 = x0;
/* 388 */ tx1 = s_height - y0 - 1.0F;
/* 389 */ ty1 = x1;
/* 390 */ return new Rectangle2D.Float(tx0, ty0, tx1 - tx0 + 1.0F, ty1 - ty0 + 1.0F);
/* */ }
/* */
/* 400 */ AffineTransform rotate = AffineTransform.getRotateInstance(angle, x_center, y_center);
/* */
/* 406 */ float sx0 = source.getMinX();
/* 407 */ float sy0 = source.getMinY();
/* 408 */ float sw = source.getWidth();
/* 409 */ float sh = source.getHeight();
/* */
/* 416 */ Point2D[] pts = new Point2D[4];
/* 417 */ pts[0] = new Point2D.Float(sx0, sy0);
/* 418 */ pts[1] = new Point2D.Float(sx0 + sw, sy0);
/* 419 */ pts[2] = new Point2D.Float(sx0 + sw, sy0 + sh);