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 ; } }
Initializes an orhtonormal transformation from the Src and Dest rectangles .