code: public void extractScaleTransform(Transformation2D scale,
  			Transformation2D rotateNshearNshift) {
  
  		scale.setScale(Math.sqrt(xx * xx + xy * xy),
  				Math.sqrt(yx * yx + yy * yy));
  		rotateNshearNshift.setScale(1.0 / scale.xx, 1.0 / scale.yy);
  		rotateNshearNshift.multiply(this);
  	}
docs: Extracts scaling part of the transformation. this == scale *
  rotateNshearNshift.
  
  @param scale
  The destination matrix where the scale part is copied.
  @param rotateNshearNshift
  The destination matrix where the part excluding rotation is
  copied.