Examples of Scale()


Examples of ToolPathWriter.CraftRoboWriter.scale()

    LOGGER.info("saving plt file to: " + currentDir + "temp.plt");
    CraftRoboWriter craftRoboWriter = new CraftRoboWriter(currentDir
        + "temp.plt");
    craftRoboWriter.setupDefault();
    craftRoboWriter.setPenForce(30);
    craftRoboWriter.scale(plotter_pixels_per_mm);
    this.pages.renderToPlotter(craftRoboWriter);
    craftRoboWriter.close();

   
View Full Code Here

Examples of ToolPathWriter.DXFWriter.scale()

    a.textSize(this.textSize);

    DXFWriter dxf = new DXFWriter(dxfSaveLocation);
    //d.beginRaw(a.DXF, dxfSaveLocation);

    dxf.scale(dxf_pixels_per_mm);

    this.pages.renderToPlotter(dxf);

    dxf.close();
    //dxf.endDraw();
View Full Code Here

Examples of ae.sun.java2d.loops.ScaledBlit.Scale()

            comp = CompositeType.SrcNoEa;
        }

        ScaledBlit blit = ScaledBlit.getFromCache(srcType, comp, dstType);
        if (blit != null) {
            blit.Scale(srcData, dstData, sg.composite, clipRegion,
                       sx1, sy1, sx2, sy2, dx1, dy1, dx2, dy2);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of cl.alejo.jcsim.csim.circuit.Box.scale()

        // recursivo);
        return;
      }
      // El calculo de proporciones
      Box boxViewport = new Box(_canvas.getViewport());
      boxViewport.scale(1.0 / _canvas.zoom);
      Box boxWorld = new Box(boxViewport);
      Box boxExtent;

      // El extent se calcula solo si hay circuito
      if (_circuit != null)
View Full Code Here

Examples of classes.SyberiadaImage.scale()

        int x = (screenW-width)/2;
       
        sPanel2.setBounds(x, 0, width, screenH);
        menu.setBounds(0, 50, width, screenH-100);
        tlo.setBounds(0, 0, width, screenH);
        tlo.scale(width, screenH);
       
        intro.appear(1f, 5000, 1500); //5000 1000
        intro.whenAppearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of com.adobe.internal.fxg.types.FXGMatrix.scale()

            spriteStack.push(clipSprite);
            List<ShapeRecord> clipRectRecords = ShapeHelper.rectangle(0.0, 0.0, imageTag.width, imageTag.height);
            DefineShape clipShape = createDefineShape(null, clipRectRecords, new SolidColorFillNode(), null, context.getTransform());
            FXGMatrix bitmapMatrix = TypeHelper.bitmapFillMatrix(fillNode, imageTag, edgeBounds);
            FXGMatrix clipMatrix = new FXGMatrix(bitmapMatrix.a, bitmapMatrix.b, bitmapMatrix.c, bitmapMatrix.d, 0, 0);
            clipMatrix.scale(1.0/SwfConstants.TWIPS_PER_PIXEL, 1.0/SwfConstants.TWIPS_PER_PIXEL);
            clipMatrix.translate(bitmapMatrix.tx, bitmapMatrix.ty);
            GraphicContext clipContext = new GraphicContext();
            clipContext.setTransform(clipMatrix);
            placeObject(clipShape, clipContext);
            spriteStack.pop();
View Full Code Here

Examples of com.aqpproject.tools.Vector2D.scale()

    @Override
    public void update(long time) {
        for (String s : m_entities.keySet()) {
            Vector2D pos = m_entities.get(s).getCenter();
            pos = pos.scale(1.f / 16.f).translate(m_position).translate(m_mapShift);
            Singleton.getVisualisation().updateActor(s + "_mini", pos.x, pos.y, 0);
        }
    }

    public void addEntity(WorldEntity entity, boolean player) {
View Full Code Here

Examples of com.badlogic.gdx.math.Matrix3.scale()

    if (originX != 0 || originY != 0)
      localTransform.setToTranslation(originX, originY);
    else
      localTransform.idt();
    if (rotation != 0) localTransform.rotate(rotation);
    if (scaleX != 1 || scaleY != 1) localTransform.scale(scaleX, scaleY);
    if (originX != 0 || originY != 0) localTransform.translate(-originX, -originY);
    localTransform.trn(x, y);

    // Find the first parent that transforms.
    Group parentGroup = parent;
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.geom.TransformationMatrix.scale()

    public void testScale() {
        System.out.println("scale");
        double x = 4.0;
        double y = 4.0;
        TransformationMatrix instance = new TransformationMatrix();
        instance.scale(x, y);

        TransformationMatrix instance2 = new TransformationMatrix();
        instance2.getMatrix().getVx().setX(x);
        instance2.getMatrix().getVy().setY(y);
View Full Code Here

Examples of com.flansmod.common.vector.Vector3f.scale()

          }
         
          //Calculate the time interval spent post reflection
          float lambda = Math.abs(motVec.lengthSquared()) < 0.00000001F ? 1F : postHitMotVec.length() / motVec.length();
          //Scale the post hit motion by the bounciness of the grenade
          postHitMotVec.scale(type.bounciness / 2);
         
          //Move the grenade along the new path including reflection
          posX += preHitMotVec.x + postHitMotVec.x;
          posY += preHitMotVec.y + postHitMotVec.y;
          posZ += preHitMotVec.z + postHitMotVec.z;
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.