Java Rectangle Grow grow(Rectangle2D.Double r, double h, double v)

Here you can find the source of grow(Rectangle2D.Double r, double h, double v)

Description

grow

License

Open Source License

Declaration

public static void grow(Rectangle2D.Double r, double h, double v) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.geom.Rectangle2D;

public class Main {
    public static void grow(Rectangle2D.Double r, double h, double v) {
        r.x -= h;/*from   w  w  w. j  ava 2 s  .c  om*/
        r.y -= v;
        r.width += h * 2.0D;
        r.height += v * 2.0D;
    }
}

Related

  1. enlargeRectangle(Rectangle2D toEnlarge, double size)
  2. enlargeRectToGrid(Rectangle2D r)
  3. grow(java.awt.Rectangle rv, int xPad, int yPad)
  4. grow(Rectangle2D r, float amountx, float amounty)
  5. grow(Rectangle2D rec, Point2D grow)
  6. grow(Rectangle2D.Float r, int size)
  7. growRect(Rectangle2D rect, double d)
  8. growRectangle(Rectangle2D rec, double amount_x, double amount_y)
  9. growRectByRelativeSize(Rectangle2D rect, double top, double right, double bottom, double left)