Package org.mt4j.util.math

Examples of org.mt4j.util.math.Matrix.multLocal()


    if (this.isGlobalMatrixDirty()){
//      System.out.println(this.getName() + "'s global matrix is dirty! calculate it:");
      resMatrix = new Matrix();
      this.getGlobalMatrixRecursive(this, resMatrix);
      //System.out.println("Applying Matrix of: '" + this.getName() + "' Matrix: " + this.getLocalBasisMatrix().toString());
      resMatrix.multLocal(this.getLocalMatrix());
     
      this.globalMatrix = resMatrix;
     
      this.setGlobalMatrixDirty(false);
    }
View Full Code Here


   
   
    Matrix svgButtonAbsInv = new Matrix(this.getCompToResize().getGlobalInverseMatrix());
    //TODO doch wieder localbase von svg dazutransformen?
    //svgbutton inverse parent relative machen
    svgButtonAbsInv.multLocal(this.getCompToResize().getLocalMatrix());
    //Remove translation for direction vectors(width/height)
    svgButtonAbsInv.removeTranslationFromMatrix();
    //Width vect in svgbutton parent relative space
    v.transform(svgButtonAbsInv);
    float width = v.length();
View Full Code Here

    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);
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.