Java Rectangle Fit fitsRotated(Rectangle2D o1, Rectangle2D o2)

Here you can find the source of fitsRotated(Rectangle2D o1, Rectangle2D o2)

Description

fits Rotated

License

Creative Commons License

Declaration

public static boolean fitsRotated(Rectangle2D o1, Rectangle2D o2) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

import java.awt.geom.Rectangle2D;

public class Main {

    public static boolean fitsRotated(Rectangle2D o1, Rectangle2D o2) {
        return (o1.getHeight() <= o2.getWidth() && o1.getWidth() <= o2.getHeight());
    }/*  w w  w  . jav a 2 s.co m*/
}

Related

  1. fitRectangles(Dimension imageSize, Dimension size)
  2. fitRectInRect(Rectangle rect, Rectangle bounds)
  3. fits(Rectangle r)
  4. fits(Rectangle2D o1, Rectangle2D o2)
  5. fitsInside(Dimension2D dim, Rectangle2D rect)
  6. reScale(Rectangle rect, int oldScale, int newScale)
  7. shrinkToFit(Rectangle container, Rectangle item)