Class RectangleExtender

java.lang.Object
org.esa.snap.core.util.RectangleExtender

public class RectangleExtender extends Object
Extends a rectangle using a horizontal and vertical extension. The rectangle is limited by the given clipping rectangle
  • Constructor Details

    • RectangleExtender

      public RectangleExtender(Rectangle clippingRect, int widthExtend, int heightExtend)
      Creates a RectangleExtender
      Parameters:
      clippingRect - The clipping Rectangle.
      widthExtend - The horizontal extension
      heightExtend - The vertical extension
  • Method Details

    • extend

      public Rectangle extend(Rectangle rectangle)
      Extends the given rectangle and clips the result to the clipping rectangle.
      Parameters:
      rectangle -
      Returns:
      extended rectangle