Examples of multiply()


Examples of org.apache.myfaces.tobago.layout.Measure.multiply()

    Measure heightOfOne = super.getHeight(facesContext, component);
    if (select.isInline()) {
      return heightOfOne;
    } else {
      List<SelectItem> items = RenderUtils.getItemsToRender((UISelectOne) component);
      return heightOfOne.multiply(items.size());
    }
  }
}
View Full Code Here

Examples of org.apache.pdfbox.util.Matrix.multiply()

        COSNumber x = (COSNumber)arguments.get( 0 );
        COSNumber y = (COSNumber)arguments.get( 1 );
        Matrix td = new Matrix();
        td.setValue( 2, 0, x.floatValue() );
        td.setValue( 2, 1, y.floatValue() );
        context.setTextLineMatrix( td.multiply( context.getTextLineMatrix() ) );
        context.setTextMatrix( context.getTextLineMatrix().clone() );
    }

    @Override
    public String getName()
View Full Code Here

Examples of org.apache.sis.internal.util.DoubleDouble.multiply()

                final int rowOffset = j*size;
                final int kmax = Math.min(j,i);
                acc.clear();
                for (int k=0; k<kmax; k++) {
                    rat.setFrom(LU, rowOffset + k, errorLU);
                    rat.multiply(column, k, size);
                    acc.add(rat);
                }
                acc.subtract(column, j, size);
                acc.negate();
                acc.storeTo(column, j, size);
View Full Code Here

Examples of org.apfloat.Apcomplex.multiply()

    }
    return other;
  }
 
  private BigDec complexGCD(Apcomplex b, Apcomplex a) {
    Apcomplex q = getQ(b, a, ApZERO, ApZERO, -1), mod = b.subtract(q.multiply(a));
    while (!mod.equals(ApZERO)) {
      b = a;
      a = mod;
      q = getQ(b, a, ApZERO, ApZERO, -1);
      mod = b.subtract(q.multiply(a));
View Full Code Here

Examples of org.bouncycastle.math.ec.ECFieldElement.multiply()

            z = zeroElement;
            ECFieldElement w = beta;
            for (int i = 1; i <= m - 1; i++)
            {
                ECFieldElement w2 = w.square();
                z = z.square().add(w2.multiply(t));
                w = w2.add(beta);
            }
            if (!w.toBigInteger().equals(ECConstants.ZERO))
            {
                return null;
View Full Code Here

Examples of org.bouncycastle.pqc.math.linearalgebra.GF2Vector.multiply()

        // decode syndrome
        GF2Vector errors = GoppaCode.syndromeDecode(syndVec, field, gp, q);
        GF2Vector mG = (GF2Vector)cPInv.add(errors);

        // multiply codeword and error vector with P
        mG = (GF2Vector)mG.multiply(p);
        errors = (GF2Vector)errors.multiply(p);

        // extract plaintext vector (last k columns of mG)
        GF2Vector m = mG.extractRightVector(k);
View Full Code Here

Examples of org.broadleafcommerce.common.money.Money.multiply()

        Money returnValue = convertToMoney(BigDecimal.ZERO);
        if (shouldSumItems()) {
            for (OrderItem containedItem : getOrderItems()) {
                returnValue = returnValue.add(containedItem.getTotalPrice());
            }
            returnValue = returnValue.multiply(quantity);
        } else {
            returnValue = super.getTotalPrice();
        }
        return returnValue;
    }
View Full Code Here

Examples of org.bukkit.util.Vector.multiply()

    if (getGroup().getProperties().isManualMovementAllowed() && entity.hasPassenger()) {
      Vector vel = entity.getPassenger().getVelocity();
      vel.setY(0.0);
      if (vel.lengthSquared() > 1.0E-4 && entity.vel.xz.lengthSquared() < 0.01) {
        entity.vel.xz.add(vel.multiply(0.1));
      }
    }

    // Perform any pre-movement rail updates
    getRailType().onPreMove(this);
View Full Code Here

Examples of org.cmj.flowy.simulation.math.Vector2.multiply()

                        // Pressure
                        float scalar = halfMass * (particle.pressure + neighbour.pressure) / neighbour.density;

                        Vector2 force = theSKPressure.CalculateGradient(distance);
                        force.multiply(scalar);
                        particle.force.subtract(force);
                        neighbour.force.add(force);

                        // Viscosity
                        scalar = massViscosityProduct * theSKViscosity.CalculateLaplacian(distance)
 
View Full Code Here

Examples of org.earth3d.jearth.math.Point3D.multiply()

    quat.createMatrix(matrix);
   
    Matrix mMatrix = new Matrix(matrix);
    Point3D strafedirection = mMatrix.multvector(direction);

    viewer = viewer.add(strafedirection.multiply(factor).multiply(viewer.length()-1));
  }

  void forwardOnSurface(float factor) {
    double viewerdistance = viewer.length();
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.