Package org.mt4j.util.math

Examples of org.mt4j.util.math.Vertex.transform()


      super.setPositionRelativeToParent(position);
      break;
    case LOWER_LEFT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex lowerLeft = new Vertex(vertices[3]);
      lowerLeft.transform(this.getLocalMatrix());
      this.translate(position.getSubtracted(lowerLeft), TransformSpace.RELATIVE_TO_PARENT);
    }break;
    case LOWER_RIGHT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex v = new Vertex(vertices[2]);
View Full Code Here


      this.translate(position.getSubtracted(lowerLeft), TransformSpace.RELATIVE_TO_PARENT);
    }break;
    case LOWER_RIGHT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex v = new Vertex(vertices[2]);
      v.transform(this.getLocalMatrix());
      this.translate(position.getSubtracted(v), TransformSpace.RELATIVE_TO_PARENT);
    }break;
    case UPPER_LEFT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex v = new Vertex(vertices[0]);
View Full Code Here

      this.translate(position.getSubtracted(v), TransformSpace.RELATIVE_TO_PARENT);
    }break;
    case UPPER_LEFT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex v = new Vertex(vertices[0]);
      v.transform(this.getLocalMatrix());
      this.translate(position.getSubtracted(v), TransformSpace.RELATIVE_TO_PARENT);
    }break;
    default:
      break;
    }
View Full Code Here

        float r2 = ellipseElem.getRy().getBaseVal().getValue();
       
        Vertex middlePoint = new Vertex(cx,cy,0);
        //Apply transformation, transform centerpoint and the radii
        try{
          middlePoint.transform(currentLocalTransformMatrix);
        }catch(Exception e){
          logger.error(e.getMessage());
        }
       
        //somehow the circle radii need to be doubled
View Full Code Here

        float r2 = circleElem.getR().getBaseVal().getValue();
       
        Vertex middlePoint = new Vertex(cx,cy,0);
        //Apply transformation, transform centerpoint and the radii
        try{
          middlePoint.transform(currentLocalTransformMatrix);
        }catch(Exception e){
          logger.error(e.getMessage());
        }
       
        //somehow the circle radii need to be doubled
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.