code: void initializeFromRectIsotropic(Envelope2D src, Envelope2D dest) {
  
  		if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth()
  				|| 0 == src.getHeight())
  			setZero();
  		else {
  			yx = 0;
  			xy = 0;
  			xx = dest.getWidth() / src.getWidth();
  			yy = dest.getHeight() / src.getHeight();
  			if (xx > yy)
  				xx = yy;
  			else
  				yy = xx;
  
  			Point2D destCenter = dest.getCenter();
  			Point2D srcCenter = src.getCenter();
  			xd = destCenter.x - srcCenter.x * xx;
  			yd = destCenter.y - srcCenter.y * yy;
  		}
  	}
docs: Initializes an orhtonormal transformation from the Src and Dest
  rectangles.
  
  The result transformation proportionally fits the Src into the Dest. The
  center of the Src will be in the center of the Dest.