translate method

void translate(
  1. double transX,
  2. double transY
)

Translates this envelope by given amounts in the X and Y direction.

@param transX the amount to translate along the X axis @param transY the amount to translate along the Y axis

Implementation

void translate(double transX, double transY) {
  if (isNull()) {
    return;
  }
  init(getMinX() + transX, getMaxX() + transX, getMinY() + transY,
      getMaxY() + transY);
}