Examples of translate()


Examples of java.awt.Rectangle.translate()

        //Uu.p("this = " + canvas);
        if (getCanvas() == null) {
            return this.temp_canvas;
        } else {
            Rectangle rect = getCanvas().getFixedRectangle();
            rect.translate(getCanvas().getX(), getCanvas().getY());
            return rect;
        }
    }

    private NamespaceHandler namespaceHandler;
View Full Code Here

Examples of java.awt.geom.AffineTransform.translate()

        if (s.length() == 0)
            return;
        PdfContentByte cb = _currentPage;
        ensureFillColor();
        AffineTransform at = (AffineTransform)getTransform().clone();
        at.translate(x, y);
        AffineTransform inverse = normalizeMatrix(at);
        AffineTransform flipper = AffineTransform.getScaleInstance(1, -1);
        inverse.concatenate(flipper);
        inverse.scale(_dotsPerPoint, _dotsPerPoint);
        double[] mx = new double[6];
View Full Code Here

Examples of javafx.scene.canvas.GraphicsContext.translate()

        final Bounds          BOUNDS       = SHAPE.getLayoutBounds();
        final Point2D         CENTER       = new Point2D(BOUNDS.getWidth() / 2, BOUNDS.getHeight() / 2);
        final double          RADIUS       = Math.sqrt(BOUNDS.getWidth() * BOUNDS.getWidth() + BOUNDS.getHeight() * BOUNDS.getHeight()) / 2;
        final double          ANGLE_STEP   = 0.1;
        final GradientLookup COLOR_LOOKUP = new GradientLookup(STOPS);
        CTX.translate(CENTER.getX(), CENTER.getY());
        CTX.rotate(-90 + ROTATION_OFFSET);
        CTX.translate(-CENTER.getX(), -CENTER.getY());
        for (int i = 0, size = STOPS.length - 1; i < size; i++) {
            for (double angle = STOPS[i].getOffset() * 360; Double.compare(angle,STOPS[i + 1].getOffset() * 360) <= 0; angle += 0.1) {
                CTX.beginPath();
View Full Code Here

Examples of limelight.util.Box.translate()

  public Box getCaretShape()
  {
    TextLocation caretLocation = getCaretLocation();
    TypedLayout line = getLines().get(caretLocation.line);
    Box caretShape = line.getCaretShape(caretLocation.index);
    caretShape.translate(getXOffset(line), getY(caretLocation));
    return caretShape;
  }

  @Override
  public ArrayList<Box> getSelectionRegions()
View Full Code Here

Examples of mekanism.api.Coord4D.translate()

    ForgeDirection right = MekanismUtils.getRight(facing);
    Coord4D startPoint = Coord4D.get(this).getFromSide(right);
    startPoint = isLeftOnFace ? startPoint.getFromSide(right) : startPoint;
   
    startPoint = startPoint.getFromSide(right.getOpposite()).getFromSide(MekanismUtils.getBack(facing));
    startPoint.translate(0, -(height-2), 0);
   
    return startPoint;
  }

  @Override
View Full Code Here

Examples of mekanism.api.Pos3D.translate()

    {
      Pos3D pos = new Pos3D();
      pos.zPos += 0.3;
      pos.xPos -= 0.4;
      pos.rotateYaw(entityplayer.renderYawOffset);
      pos.translate(new Pos3D(entityplayer));

      world.spawnEntityInWorld(new EntityBalloon(world, pos.xPos-0.5, pos.yPos-0.25, pos.zPos-0.5, getColor(itemstack)));
    }

    itemstack.stackSize--;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.vector.BlockVec3.translate()

          up++;
          TileEntity newTile = vec.getTileEntityOnSide(this.worldObj, 1);
          if (newTile instanceof TileEntityScreen)
          {
            tile = (TileEntityScreen) newTile;
            vec.translate(010);
          }
          else
          {
            System.out.println("Debug - connected up to a non-screen tile");
            tile.connectedUp = false;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.vector.Vector3.translate()

    public Vector3 getInputPoint()
    {
        float distance = 0.15F;
        Vector3 deviation = new Vector3(Math.sin(Math.toRadians(this.yaw - 180)) * distance, 0, Math.cos(Math.toRadians(this.yaw - 180)) * distance);
        Vector3 headVec = new Vector3(this.xCoord + 0.5, this.yCoord + 1.13228 / 2.0, this.zCoord + 0.5);
        headVec.translate(deviation.clone().invert());
        return headVec;
    }

    @Override
    public Vector3 getOutputPoint(boolean offset)
View Full Code Here

Examples of net.br410bury.graphics.GraphicsMatrix.translate()

   
    amounts = new double[channels.length];
    System.arraycopy(motion.getFrame(frame), start, amounts, 0, channels.length);
   
    g.eye();
    g.translate(amounts, channels);
   
    return g;
  }
 
  /**
 
View Full Code Here

Examples of net.rim.device.api.math.Matrix4f.translate()

        final Matrix4f m = new Matrix4f(modelview);
        _character._transform.getTranslation(_t);

        // Determine which horizontal section of the level to render
        if (_t.x > 0.0f) {
            m.translate(-_t.x, 0.0f, 0.0f);
        }

        // Determine which vertical section of the level to render
        if (_t.y > 0.0f && _t.y <= _levelHeight) {
            m.translate(0.0f, -_t.y, 0.0f);
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.