Examples of scale()


Examples of com.pointcliki.core.Sprite.scale()

          if (fItem == 20) pid = new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/INGAMEICONZ/TOOLZ/WARPSTONEZ3/FRAME001", "pid"));
          else if (fItem < 23) pid = new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/INGAMEICONZ/TOOLZ/" + Grunt.TOOLS[fItem] + "/FRAME001", "pid"));
          else pid = new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/INGAMEICONZ/TOYZ/" + Grunt.TOYS[fItem - 23] + "/FRAME001", "pid"));
         
          Sprite sp = new Sprite(pid.image());
          sp.scale(0.5f).position(new Vector2f(10, 10));
          addChild(sp);
        }
      }
         
      // Add pressure change monitor
View Full Code Here

Examples of com.pugh.sockso.music.CoverArt.scale()

        final Properties p = getProperties();
        final BufferedImage originalImage = ImageIO.read( new File( localPath ) );
        final CoverArt cover = new CoverArt(itemName, originalImage);

        cover.scale(
                (int) p.get(Constants.DEFAULT_ARTWORK_WIDTH, 115),
                (int) p.get(Constants.DEFAULT_ARTWORK_HEIGHT, 115));

        // only cache local cover images if we've been explicitly
        // told to do so (improves performance)
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.Matrix.scale()

    if (rotation != null) {
      matrix.rotate(rotation.getDegrees(), rotation.getX(), rotation.getY());
      deltaDegrees += rotation.getDegrees();
    }
    if (scaling != null) {
      matrix.scale(scaling.getX(), scaling.getY(), scaling.getCenterX(), scaling.getCenterY());
      deltaScaleX *= scaling.getX();
      deltaScaleY *= scaling.getY();
    }
    if (translation != null) {
      matrix.translate(translation.getX(), translation.getY());
View Full Code Here

Examples of com.sk89q.worldedit.math.transform.AffineTransform.scale()

    public void flip(Player player, LocalSession session, EditSession editSession,
                     @Optional(Direction.AIM) @Direction Vector direction) throws WorldEditException {
        ClipboardHolder holder = session.getClipboard();
        Clipboard clipboard = holder.getClipboard();
        AffineTransform transform = new AffineTransform();
        transform = transform.scale(direction.positive().multiply(-2).add(1, 1, 1));
        holder.setTransform(holder.getTransform().combine(transform));
        player.print("The clipboard copy has been flipped.");
    }

    @Command(
View Full Code Here

Examples of com.thecrouchmode.vector.Vector3f.scale()

       
        Vector3f normal = new Vector3f(0, 0, 0);
        for(Vector3f normalTerm : normalLists.get(i)){
          normal = normal.add(normalTerm);
        }
        normal = normal.scale(1.0/normalLists.get(i).size());
        //normal = new Vector3f(1, 0, 0);
       
        dataBuffer[i*elements+3] = normal.x;
        dataBuffer[i*elements+4] = normal.y;
        dataBuffer[i*elements+5] = normal.z;
View Full Code Here

Examples of crazypants.render.BoundingBox.scale()

      break;
    }
    rangeSqu = range * range;

    BoundingBox bb = new BoundingBox(new BlockCoord(this));
    bb = bb.scale(range, range, range);
    attractorBounds = AxisAlignedBB.getBoundingBox(bb.minX, bb.minY, bb.minZ, bb.maxX, bb.maxY, bb.maxZ);
    capacitor = new BasicCapacitor(powerPerTick * 8, capacitorType.capacitor.getMaxEnergyStored(), powerPerTick);
  }

  @Override
View Full Code Here

Examples of crazypants.vecmath.Vector2d.scale()

     
      Vector3d blockCenter = new Vector3d(selectedCoord.x + 0.5, selectedCoord.y + 0.5, selectedCoord.z + 0.5);
      Vector2d blockCenterPixel = currentView.getScreenPoint(blockCenter);           
     
      Vector2d screenMidPixel = new Vector2d(Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);
      screenMidPixel.scale(0.5);

     
      double pixDist = blockCenterPixel.distance(screenMidPixel);
      double rat = pixDist / Minecraft.getMinecraft().displayHeight;
      if(rat != rat) {
View Full Code Here

Examples of crazypants.vecmath.Vector3d.scale()

    return new Vector3d(OFFSETS[dir.ordinal()]);
  }

  public static Vector3d offsetScaled(ForgeDirection dir, double scale) {
    Vector3d res = forDirCopy(dir);
    res.scale(scale);
    return res;
  }

  public ForgeDirection closest(float x, float y, float z) {
    float ax = Math.abs(x);
View Full Code Here

Examples of crazypants.vecmath.Vector4f.scale()

            tes.setBrightness(b);
          } else {
            tes.setBrightness(15 << 20 | 0 << 4);
          }
          if(colCount > 0) {
            col.scale(0.25);
            tes.setColorRGBA_F(col.x, col.y, col.z, col.w);
          }
          renderGaugeOnFace(gb, EnderIO.blockCapacitorBank.overlayIcon, refVertices, x, y, z);
          renderFillBarOnFace(gb, EnderIO.blockCapacitorBank.fillBarIcon,capBank.getEnergyStoredRatio(), refVertices, x, y, z);
          capBank.lastRenderStoredRatio = capBank.getEnergyStoredRatio();
View Full Code Here

Examples of eas.math.geometry.Polygon2D.scale()

    @Override
    public Vector2D getPointInVisualization(Vector3D fieldPos) {
        double scale = env.globalScale();
        Polygon2D b = env.getCurrentViewBox().toPol2D();

        b.scale(Vector2D.NULL_VECTOR, new Vector2D(scale, scale));
        Vector2D pos = new Vector2D(fieldPos.x, fieldPos.y);

        if (env.getVisualizationAngleCenterPoint() != null) {
            pos.rotate(env.getVisualizationAngleCenterPoint(), env.getVisualizationAngleRAD());
        }
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.