src/main/java/de/javagl/geom/Rectangles.java
/**
     * Return a copy of the given rectangle
     * 
     * @param r The rectangle
     * @return The copy of the given rectangle
     */
Return a copy of the given rectangle

@param r The rectangle
@return The copy of the given rectangle
Return a copy of the given rectangle @param r The rectangle @return The copy of the given rectangle
public static Rectangle2D copy(Rectangle2D r)
    {
        return new Rectangle2D.Double(
            r.getX(), r.getY(), r.getWidth(),r.getHeight());
    }
public static Rectangle2D copy ( Rectangle2D r ) { return new Rectangle2D . Double ( r . getX ( ) , r . getY ( ) , r . getWidth ( ) , r . getHeight ( ) ) ; }
Return a copy of the given rectangle
Return a copy of the given rectangle