isis/src/qisis/objs/RubberBandTool/RubberBandTool.cpp
void RubberBandTool::paintRectangle(QPoint upperLeft, QPoint lowerRight, QPainter *painter) {
    QPoint upperRight = QPoint(lowerRight.x(), upperLeft.y());
    QPoint lowerLeft = QPoint(upperLeft.x(), lowerRight.y());

    paintRectangle(upperLeft, upperRight, lowerLeft, lowerRight, painter);
  }
/**
   * Given opposite corners, the other two are interpolated and the rectangle is drawn.
   *
   * @param upperLeft Corner opposite of lowerRight
   * @param lowerRight Corner opposite of upperLeft
   * @param painter
   */
Given opposite corners, the other two are interpolated and the rectangle is drawn.
@param upperLeft Corner opposite of lowerRight
@param lowerRight Corner opposite of upperLeft
@param painter
Given opposite corners the other two are interpolated and the rectangle is drawn . @param upperLeft Corner opposite of lowerRight @param lowerRight Corner opposite of upperLeft @param painter
void RubberBandTool::paintRectangle(QPoint upperLeft, QPoint lowerRight, QPainter *painter) {
    QPoint upperRight = QPoint(lowerRight.x(), upperLeft.y());
    QPoint lowerLeft = QPoint(upperLeft.x(), lowerRight.y());
    paintRectangle(upperLeft, upperRight, lowerLeft, lowerRight, painter);
  }
void RubberBandTool :: paintRectangle ( QPoint upperLeft , QPoint lowerRight , QPainter * painter ) { QPoint upperRight = QPoint ( lowerRight . x ( ) , upperLeft . y ( ) ) ; QPoint lowerLeft = QPoint ( upperLeft . x ( ) , lowerRight . y ( ) ) ; paintRectangle ( upperLeft , upperRight , lowerLeft , lowerRight , painter ) ; }
Given opposite corners, the other two are interpolated and the rectangle is drawn.
Given opposite corners the other two are interpolated and the rectangle is drawn .