FACT++  1.0
QRectF UIConnector::scaleBoundingRectangle ( QRectF  rectangle,
float  scale 
)
private

Definition at line 1846 of file RawEventsViewer.cc.

1847 {
1848  QPointF bottomRight = rectangle.bottomRight();
1849  QPointF topLeft = rectangle.topLeft();
1850  QPointF center = rectangle.center();
1851  return QRectF(topLeft + (topLeft-center)*(scale-1.0f), //top left
1852  bottomRight + (bottomRight-center)*(scale-1.0f)); //bottom right
1853 }