Esempio n. 1
0
  /**
   * Expands this envelope by a given distance in all directions. Both positive and negative
   * distances are supported.
   *
   * @param deltaX the distance to expand the envelope along the the X axis
   * @param deltaY the distance to expand the envelope along the the Y axis
   */
  public void expandBy(final double deltaX, final double deltaY, final double deltaZ) {
    if (isNull()) {
      return;
    }
    minz -= deltaZ;
    maxz += deltaZ;
    expandBy(deltaX, deltaY);

    // check for envelope disappearing
    if (minz > maxz) {
      setToNull();
    }
  }
Esempio n. 2
0
 /**
  * Expands this envelope by a given distance in all directions. Both positive and negative
  * distances are supported.
  *
  * @param distance the distance to expand the envelope
  */
 @Override
 public void expandBy(final double distance) {
   expandBy(distance, distance, distance);
 }