Examples of fill()


Examples of mikera.vectorz.AVector.fill()

  }
 
  private static void doApplyTest(ITransform t) {
    AVector x=Vectorz.createUniformRandomVector(t.inputDimensions());
    AVector y=Vectorz.newVector(t.outputDimensions());
    y.fill(Double.NaN);
   
    AVector x2=x.clone();
    t.transform(x2, y);
   
    // should overwrite everything
View Full Code Here

Examples of mikera.vectorz.Vector.fill()

      super.transform(source, dest);
    } else if ((source instanceof Vector )) {
      transform ((Vector)source, (Vector)dest);
    } else {
      Vector t=(Vector)dest;
      t.fill(0.0);
      double[] data=t.getArray();
      for (int i=minBand; i<=maxBand; i++) {
        AVector b=getBand(i);
        b.addProductToArray(1.0, 0, source, Math.max(i, 0), data, Math.max(-i, 0), bandLength(i));
      }
View Full Code Here

Examples of mods.railcraft.common.blocks.machine.beta.TileEngineSteamHobby.fill()

        WorldPlugin.setBlock(world, xx, yy, zz, RailcraftBlocks.getBlockMachineBeta(), EnumMachineBeta.ENGINE_STEAM_HOBBY.ordinal());
        TileEntity tile = WorldPlugin.getBlockTile(world, xx, yy, zz);
        if (tile instanceof TileEngineSteamHobby) {
            TileEngineSteamHobby engine = (TileEngineSteamHobby) tile;
            engine.switchOrientation();
            engine.fill(ForgeDirection.UP, Fluids.WATER.getB(4), true);
//            engine.setInventorySlotContents(TileEngineSteamHobby.SLOT_FUEL, new ItemStack(Items.coal, 16));
        }
    }

    @Override
View Full Code Here

Examples of mods.railcraft.common.fluids.TankManager.fill()

    @Override
    public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {
        TankManager tMan = getTankManager();
        if (tMan != null) {
            return tMan.fill(from, resource, doFill);
        }
        return 0;
    }

    @Override
View Full Code Here

Examples of mods.railcraft.common.fluids.TankToolkit.fill()

        flow = 0;
        if (cartNeedsFilling && (!needsPipe || pipeIsExtended())) {
            FluidStack drained = tankManager.drain(0, RailcraftConfig.getTankCartFillRate(), false);
            if (drained != null) {
                flow = tankCart.fill(ForgeDirection.UP, drained, true);
                tankManager.drain(0, flow, true);
            }
        }

        if (flow > 0) {
View Full Code Here

Examples of net.minecraftforge.fluids.FluidTank.fill()

        }
        FluidTank tankSide = ((PipeFluidTransportLogistics)this.transport).sideTanks[pair.getValue2().ordinal()];
        stack = tank.getFluid();
        if(stack == null) continue;
        stack = stack.copy();
        int filled = tankSide.fill(stack , true);
        if(filled == 0) continue;
        FluidStack drain = tank.drain(filled, true);
        if(drain == null || filled != drain.amount) {
          if(LPConstants.DEBUG) {
            throw new UnsupportedOperationException("Fluid Multiplication");
View Full Code Here

Examples of net.minecraftforge.fluids.IFluidContainerItem.fill()

    if(fluid == null)
    {
      return 0;
    }
   
    return item.fill(container, fluid, true);
  }
 
  public static enum ContainerEditMode
  {
    BOTH("fluidedit.both"),
View Full Code Here

Examples of net.minecraftforge.fluids.IFluidHandler.fill()

      for (FluidTankInfo info : infos) {
        if(info.fluid != null && info.fluid.amount > 0 && from.canDrain(fromDir, info.fluid.getFluid())) {
          FluidStack maxDrain = new FluidStack(info.fluid.getFluid(), maxVolume);
          FluidStack canDrain = from.drain(fromDir, maxDrain, false);
          if(canDrain != null && canDrain.amount > 0) {
            int filled = target.fill(fromDir.getOpposite(), canDrain, true);
            from.drain(fromDir, new FluidStack(info.fluid.getFluid(), filled), true);
            res |= true;
          }
        }
      }
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperFillManager.fill()

                connection = DriverManager.getConnection(template.getJdbcUrl(), template.getJdbcUser(), template.getJdbcPassword());
            } else {
                connection = DriverManager.getConnection(template.getJdbcUrl());
            }

            print = fillManager.fill(
                    jasperTemplateBuild.getAbsolutePath(),
                    values.asMap(),
                    connection);

        } else {
View Full Code Here

Examples of net.sf.robocode.robotpaint.Graphics2DSerialized.fill()

    sg.drawRect(90, 20, 30, 50);

    sg.setColor(Color.CYAN);

    sg.setStroke(new BasicStroke(1, 2, BasicStroke.JOIN_ROUND, 4, null, 0));
    sg.fill(new Rectangle2D.Double(20, 70, 30, 50));
    sg.fill(new Ellipse2D.Double(70, 70, 30, 50));

    sg.setColor(Color.MAGENTA);
    sg.fill(new RoundRectangle2D.Double(110, 70, 30, 50, 13.5, 16.1));
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.