src/main/java/de/javagl/geom/AffineTransforms.java
/**
     * Creates a new rectangle that is transformed with the given transform,
     * which is assumed to only contain a translation
     * 
     * @param at The affine transform
     * @param r The rectangle
     * @return The transformed rectangle
     */
Creates a new rectangle that is transformed with the given transform,
which is assumed to only contain a translation

@param at The affine transform
@param r The rectangle
@return The transformed rectangle
Creates a new rectangle that is transformed with the given transform which is assumed to only contain a translation @param at The affine transform @param r The rectangle @return The transformed rectangle
private static Rectangle2D createTranslated(
        AffineTransform at, Rectangle2D r)
    {
        Rectangle2D result = new Rectangle2D.Double(
            r.getX() + at.getTranslateX(), 
            r.getY() + at.getTranslateY(),
            r.getWidth(), r.getHeight());
        return result;
    }
private static Rectangle2D createTranslated ( AffineTransform at , Rectangle2D r ) { Rectangle2D result = new Rectangle2D . Double ( r . getX ( ) + at . getTranslateX ( ) , r . getY ( ) + at . getTranslateY ( ) , r . getWidth ( ) , r . getHeight ( ) ) ; return result ; }
Creates a new rectangle that is transformed with the given transform,
 which is assumed to only contain a translation
Creates a new rectangle that is transformed with the given transform which is assumed to only contain a translation