Examples of translate()


Examples of processing.core.PMatrix3D.translate()

  protected void update(BvhBone bone )
  {

      PMatrix3D m = new PMatrix3D();

      m.translate(bone.getXposition(), bone.getYposition(), bone.getZposition());
      m.translate(bone.getOffsetX(), bone.getOffsetY(), bone.getOffsetZ());
     
      m.rotateY(PApplet.radians(bone.getYrotation()));
      m.rotateX(PApplet.radians(bone.getXrotation()));
      m.rotateZ(PApplet.radians(bone.getZrotation()));
View Full Code Here

Examples of q_impress.pmi.lib.jmt.xml.XmlTranslator.translate()

    loadDevices();
   
    // translate to XML
    XmlTranslator xmlTranslator = new XmlTranslator(decFactory, deploymentDevices, activitiesInfo.values(), outStream);
    try {
      xmlTranslator.translate();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of quicktime.std.image.Matrix.translate()

        c = (width1 - width2) / 2;
      } // else if ((height2 >= height1) && (width1 >= width2))

      // modify matrices based on changes made in the if-clause above
      matrix1.translate(a, b);
      matrix2.translate(c, d);

      // set tracks to changed matrices
      track1.setMatrix(matrix1);
      track2.setMatrix(matrix2);
View Full Code Here

Examples of railo.runtime.img.Image.translate()

    else if("bicubic".equals(strInterpolation))   interpolation = RenderingHints.VALUE_INTERPOLATION_BICUBIC;
   
    else throw new FunctionException(pc,"ImageTranslate",4,"interpolation","invalid interpolation definition ["+strInterpolation+"], " +
        "valid interpolation values are [nearest,bilinear,bicubic]");
   
    img.translate((int)xTrans, (int)yTrans,interpolation);
    return null;
  }
}
View Full Code Here

Examples of ru.snake.spritepacker.core.Animation.translate()

      Point currentOffset = animation.getOffset();

      int offsetX = baseOffset.x - currentOffset.x;
      int offsetY = baseOffset.y - currentOffset.y;

      animation.translate(offsetX, offsetY);
    }

    factory.updateAnimations();
  }
View Full Code Here

Examples of simtools.diagram.Element.translate()

        // Implementation of the abstract methods
        protected void translate(int x, int y) {
            for (int i = 0; i < TestShapesContainer.this.size(); i++) {
                Element s = (Element) TestShapesContainer.this.get(i);
                s.translate(x, y);
            }
        }


        // Overridden to store undo info
View Full Code Here

Examples of simtools.shapes.AbstractShape.translate()

      int y=(int)((double)pt.y/_param.scale)-_param.ymargin;
      Vector v=DiagramClipboard.get();
      if(v.size()>0){
        if(v.get(0) instanceof AbstractShape){
          AbstractShape as=(AbstractShape)v.get(0);
          as.translate(x,y);
          ShapesContainer.this.addElement(as);
        }
      }
      DiagramClipboard.get().clear();
      _dragging=false;
View Full Code Here

Examples of sun.print.ProxyGraphics2D.translate()

        ProxyGraphics2D proxy = new ProxyGraphics2D(g, wPrinterJob);
        proxy.setColor(Color.white);
        proxy.fillRect(0, 0, deepImage.getWidth(), deepImage.getHeight());
        proxy.clipRect(0, 0, deepImage.getWidth(), deepImage.getHeight());

        proxy.translate(-region.getX(), -region.getY());

        /* Calculate the resolution of the source image.
         */
        float sourceResX = (float)(wPrinterJob.getXRes() / scaleX);
        float sourceResY = (float)(wPrinterJob.getYRes() / scaleY);
View Full Code Here

Examples of sw_digitalworks.CommandInterpreter.translate()

                os_generated.close();
                ps_generated.close();

                System.setOut(System.out);
               
                ci.translate("quit");
                System.out.println("Vege");
            }

            //Eredmény és elvárt eredmény sorainak összehasonlítása
            int lineCounter = 0;
View Full Code Here

Examples of tiled.core.MapLayer.translate()

        break;
      case PS_MOVE: {
        Point translation = new Point(tile.x - mousePressLocation.x,
            tile.y - mousePressLocation.y);

        layer.translate(translation.x, translation.y);
        mousePressLocation = tile;
        moveDist.x += translation.x;
        moveDist.y += translation.y;
        mapView.redraw();
        break;
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.