/* (non-Javadoc)
* @see com.jMT.input.gestureAction.DefaultButtonClickAction#resize(float, float)
*/
@Override
public void resize(float newWidth, float newHeight){
Matrix refCompLocalToWorld = new Matrix(this.getReferenceComp().getGlobalMatrix());
//Center into world space
Vector3D refCompCenter = this.centerObjSpace.getCopy();
refCompCenter.transform(refCompLocalToWorld);
//Remove translation for direction vectors(width/height)
refCompLocalToWorld.removeTranslationFromMatrix();
//Width vect into world space
Vector3D objSpaceWidth = this.widthObjSpace.getCopy();
objSpaceWidth.transform(refCompLocalToWorld);
// System.out.println(" world Width vect of reference component: " + objSpaceWidth);
/////Transform width/height/center to svgbutton relative
Matrix svgButtonAbsInv = new Matrix(this.getCompToResize().getGlobalInverseMatrix());
//Center in svgbutton relative
refCompCenter.transform(svgButtonAbsInv);
// System.out.println("Centerpoint svgRelative: " + refCompCenter);
//TODO doch wieder localbase von svg dazutransformen?
//svgbutton inverse parent relative machen
svgButtonAbsInv.multLocal(this.getCompToResize().getLocalMatrix());
// //Center in svgbutton relative
// refCompCenter.transform(svgButtonAbsInv);
// System.out.println("Centerpoint svgRelative: " + refCompCenter);
//Remove translation for direction vectors(width/height)
svgButtonAbsInv.removeTranslationFromMatrix();
//Width vect in svgbutton parent relative
objSpaceWidth.transform(svgButtonAbsInv);
// System.out.println(" svgbutton space Width vect of reference component: " + objSpaceWidth);