RectangleLineIntersector constructor

RectangleLineIntersector(
  1. Envelope rectEnv
)

Creates a new intersector for the given query rectangle, specified as an {@link Envelope}.

@param rectEnv the query rectangle, specified as an Envelope

Implementation

RectangleLineIntersector(this.rectEnv) {
  /**
   * Up and Down are the diagonal orientations
   * relative to the Left side of the rectangle.
   * Index 0 is the left side, 1 is the right side.
   */
  diagUp0 = new Coordinate(rectEnv.getMinX(), rectEnv.getMinY());
  diagUp1 = new Coordinate(rectEnv.getMaxX(), rectEnv.getMaxY());
  diagDown0 = new Coordinate(rectEnv.getMinX(), rectEnv.getMaxY());
  diagDown1 = new Coordinate(rectEnv.getMaxX(), rectEnv.getMinY());
}