public void setSimilar(){
ab = new SimilarTransformBuilder(mps);
}
public void printGeomCoef() throws FactoryException{
AffineToGeometric a2g = new AffineToGeometric((AffineTransform2D)ab.getMathTransform());
NumberFormat formatter = new DecimalFormat("#0.000000000");
/* System.out.println("== builder geometric coeficients ==");
System.out.println("sx = " + formatter.format(((AdvancedAffineBuilder)ab).getXScale()));
System.out.println("sy = " + formatter.format(((AdvancedAffineBuilder)ab).getYScale()));
System.out.println("skew = " + formatter.format(((AdvancedAffineBuilder)ab).getSkew()));
System.out.println("tx = " + formatter.format(((AdvancedAffineBuilder)ab).getXTranslate()));
System.out.println("ty = " + formatter.format(((AdvancedAffineBuilder)ab).getYTranslate()));
System.out.println("phi = " + formatter.format(((AdvancedAffineBuilder)ab).getRotation()));
*/
System.out.println("== geometric coeficients ==");
System.out.println("sx = " + formatter.format(a2g.getXScale()));
System.out.println("sy = " + formatter.format(a2g.getYScale()));
System.out.println("skew = " + formatter.format(a2g.getSkew()));
System.out.println("tx = " + formatter.format(a2g.getXTranslate()));
System.out.println("ty = " + formatter.format(a2g.getYTranslate()));
System.out.println("phix = " + formatter.format(a2g.getXRotation()));
System.out.println("phiy = " + formatter.format(a2g.getYRotation()));
}