Examples of removeTranslationFromMatrix()


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

* the width
*/
  public float getWidthXYRelativeToParent() {
    Vector3D p = this.widthVect.getCopy();
    Matrix m = new Matrix(this.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
 
View Full Code Here

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

   * the Width relative to the world space
   */
  public float getWidthXYGlobal() {
    Vector3D p = this.widthVect.getCopy();
    Matrix m = new Matrix(this.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
 
View Full Code Here

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

* the height relative to its parent space frame
*/
  public float getHeightXYRelativeToParent() {
    Vector3D p = this.heightVect.getCopy();
    Matrix m = new Matrix(this.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
  /**
 
View Full Code Here

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

   * the height relative to the world space
   */
  public float getHeightXYGlobal() {
    Vector3D p = this.heightVect.getCopy();
    Matrix m = new Matrix(this.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
  /**
 
View Full Code Here

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

   * @return the height xy relative to parent
   */
  private float getHeightXYRelativeToParent() {
    Vector3D p = this.getHeightXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
   
//    Vector3D[] v = this.getVectorsRelativeToParent();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
View Full Code Here

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

   * @return the height xy global
   */
  private float getHeightXYGlobal() {
    Vector3D p = this.getHeightXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
   
//    Vector3D[] v = this.getVectorsGlobal();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
View Full Code Here

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

   */
  private float getWidthXYRealtiveToParent() {
    //This calculates the width aligned/relative to the object
    Vector3D p = this.getWidthXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
   
    //This calculates the dimension relative to the screen axis (here X-axis)
//    Vector3D[] v = this.getVectorsRelativeToParent();
View Full Code Here

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

   * @return the width xy global
   */
  private float getWidthXYGlobal() {
    Vector3D p = this.getWidthXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
   
//    Vector3D[] v = this.getVectorsGlobal();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
View Full Code Here

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

   * the height relative to its peer components parent frame of reference
   */
  private float getHeightXYRelativeToParent() {
    Vector3D p = this.getHeightXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
 
View Full Code Here

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

   * the height relative to the world space
   */
  private float getHeightXYGlobal() {
    Vector3D p = this.getHeightXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }

  /**
 
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.