Package org.mt4j.util.math

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


   * the width
   */
  private float getWidthXYRealtiveToParent() {
    Vector3D p = this.getWidthXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
  /**
 
View Full Code Here


      return a.length();
    */
   
    Vector3D p = this.getWidthXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }

 
View Full Code Here

      case LOCAL:
        return this.getHeightXYVectLocal().length();
      case RELATIVE_TO_PARENT:{
        Vector3D p = this.getHeightXYVectLocal();
        Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
        m.removeTranslationFromMatrix();
        p.transform(m);
        return p.length();
      }
      case GLOBAL:{
        Vector3D p = this.getHeightXYVectLocal();
View Full Code Here

        return p.length();
      }
      case GLOBAL:{
        Vector3D p = this.getHeightXYVectLocal();
        Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
        m.removeTranslationFromMatrix();
        p.transform(m);
        return p.length();
      }
      default:
        return -1;
View Full Code Here

      case LOCAL:
        return this.getWidthXYVectLocal().length();
      case RELATIVE_TO_PARENT:{
        Vector3D p = this.getWidthXYVectLocal();
        Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
        m.removeTranslationFromMatrix();
        p.transform(m);
        return p.length();
      }
      case GLOBAL:{
        Vector3D p = this.getWidthXYVectLocal();
View Full Code Here

        return p.length();
      }
      case GLOBAL:{
        Vector3D p = this.getWidthXYVectLocal();
        Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
        m.removeTranslationFromMatrix();
        p.transform(m);
        return p.length();
      }
      default:
        return -1;
View Full Code Here

   * 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();
   
//    Vector3D[] v = xyBoundsRect.getVectorsRelativeToParent();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
View Full Code Here

   * 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();
   
//    Vector3D[] v = xyBoundsRect.getVectorsGlobal();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
View Full Code Here

   * the width
   */
  private float getWidthXYRealtiveToParent() {
    Vector3D p = this.getWidthXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
   
//    Vector3D[] v = xyBoundsRect.getVectorsRelativeToParent();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
View Full Code Here

   * the Width relative to the world space
   */
  private float getWidthXYGlobal() {
    Vector3D p = this.getWidthXYVectLocal();
    Matrix m = new Matrix(this.peerComponent.getGlobalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
   
//    Vector3D[] v = xyBoundsRect.getVectorsGlobal();
//    float[] minMax = ToolsGeometry.getMinXYMaxXY(v);
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.