Package org.mt4j.util.math

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


//    Vector3D v = this.getReferenceComp().getWidthXYVectObjSpace();
    Vector3D v = getWidthVectorLocal();
   
    Matrix refCompLocalToWorld = new Matrix(this.getReferenceComp().getGlobalMatrix());
    //Remove translation for direction vectors(width/height)
    refCompLocalToWorld.removeTranslationFromMatrix();
   
    //obj width vect to world space
    v.transform(refCompLocalToWorld);
   
   
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();
    return width;
  }
View Full Code Here

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

//    //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);
   
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.