Examples of mult()


Examples of com.jme3.math.Vector2f.mult()

      Distance = Math.abs(Distance);
      Distance = (Epsilon > Distance ? Epsilon : Distance);

      // this point needs adjustment
      Vector2f Normal = m_Side[SideNumber].getNormal();
      Normal = Normal.mult(Distance);
      TestPoint.x += Normal.x;
      TestPoint.y += Normal.y;
      return (true);
    }
    return (false);
View Full Code Here

Examples of com.jme3.math.Vector3f.mult()

            inputManager.getCursorPosition(), 0.0f);
        Vector3f direction = cam.getWorldCoordinates(
            inputManager.getCursorPosition(), 0.3f);
        direction.subtractLocal(origin).normalizeLocal();
       
        Line li = new Line(origin.clone(), origin.add(direction.mult(30f)));
//        li.setLineWidth(3f);
        Geometry g = new Geometry(null, li);
      g.setMaterial(matWireframe);
      bboxes.attachChild(g);
View Full Code Here

Examples of com.numb3r3.common.math.Matrix.mult()

     * @param args
     */
    public static void main(String[] args) {
        Matrix m = InMemoryJBlasMatrix.randn(3);
        double[] scores1 = m.toArray();
        double[] scores2 = m.mult(-1.0).toArray();

        ArrayPrinting.printDoubleArray(scores1, null, "score 1");
        ArrayPrinting.printDoubleArray(scores2, null, "score 2");
        ArrayPrinting.printIntArray(ArrayUtil.argsort(scores2), null, "sorted array");

View Full Code Here

Examples of eas.math.geometry.Vector2D.mult()

        Vector2D mitte = new Vector2D(
                rob.getEnvironmentEA().getDynWaende()[17].centerPoint());
        Vector2D robPosVer = new Vector2D(rob.getPosition());
        Vector2D robPos = new Vector2D(rob.getPosition());
        Vector2D robBlick = new Vector2D(rob.getBlickrichtung());
        robBlick.mult(30);
        robPosVer.translate(robBlick);

        Vector2D richtPos = new Vector2D(robPos);
        // Richtung von Mitte zu Position des Roboters.
        richtPos.sub(mitte);
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.Expr.mult()

       final int n = x.count();
       final ExprVar v = x.get(i);
       final Expr bound = x.getBound(i);
       final SimTupleset e = cset(bound);
       final Iterator<SimTupleset> it;
       switch(bound.mult()) {
         case LONEOF: it = e.loneOf(); break;
         case ONEOF:  it = e.oneOf()break;
         case SOMEOF: it = e.someOf(); break;
         default:     it = e.setOf();
       }
View Full Code Here

Examples of fmg.fmg8.umgebung2D.Vektor2D.mult()

       Vektor2D dreiP2 = (new Vektor2D(p2));
       Vektor2D sechsP1 = (new Vektor2D(p1));
       dreiP0.mult(3);
       dreiP1.mult(3);
       dreiP2.mult(3);
       sechsP1.mult(6);
       Vektor2D punkt2, punkt3;
       double tQuad, tKub;

       for (double t = 0; t <= 1; t += step) {
           tQuad = t * t;
 
View Full Code Here

Examples of no.uib.cipr.matrix.TridiagMatrix.mult()

        System.arraycopy(svd.getS(), 0, S.getDiagonal(), 0, svd.getS().length);
        DenseMatrix U = svd.getU();
        DenseMatrix Vt = svd.getVt();

        // Compute U*S*Vt
        Matrix s = U.mult(S.mult(Vt, new DenseMatrix(S.numRows(), Vt
                .numColumns())), new DenseMatrix(A.numRows(), A.numColumns()));

        // Check that A=U*S*Vt
        for (int i = 0; i < A.numRows(); ++i)
            for (int j = 0; j < A.numColumns(); ++j)
View Full Code Here

Examples of org.bouncycastle.pqc.math.ntru.polynomial.BigIntPolynomial.mult()

            r = BigIntEuclidean.calculate(rf.res, rg.res);
        }
        while (!r.gcd.equals(ONE));

        BigIntPolynomial A = (BigIntPolynomial)rf.rho.clone();
        A.mult(r.x.multiply(BigInteger.valueOf(q)));
        BigIntPolynomial B = (BigIntPolynomial)rg.rho.clone();
        B.mult(r.y.multiply(BigInteger.valueOf(-q)));

        BigIntPolynomial C;
        if (params.keyGenAlg == NTRUSigningKeyGenerationParameters.KEY_GEN_ALG_RESULTANT)
View Full Code Here

Examples of org.bouncycastle.pqc.math.ntru.polynomial.BigIntPolynomial.mult()

        while (!r.gcd.equals(ONE));

        BigIntPolynomial A = (BigIntPolynomial)rf.rho.clone();
        A.mult(r.x.multiply(BigInteger.valueOf(q)));
        BigIntPolynomial B = (BigIntPolynomial)rg.rho.clone();
        B.mult(r.y.multiply(BigInteger.valueOf(-q)));

        BigIntPolynomial C;
        if (params.keyGenAlg == NTRUSigningKeyGenerationParameters.KEY_GEN_ALG_RESULTANT)
        {
            int[] fRevCoeffs = new int[N];
View Full Code Here

Examples of org.bouncycastle.pqc.math.ntru.polynomial.BigIntPolynomial.mult()

            IntegerPolynomial t = f.mult(fRev);
            t.add(g.mult(gRev));
            Resultant rt = t.resultant();
            C = fRev.mult(B);   // fRev.mult(B) is actually faster than new SparseTernaryPolynomial(fRev).mult(B), possibly due to cache locality?
            C.add(gRev.mult(A));
            C = C.mult(rt.rho);
            C.div(rt.res);
        }
        else
        {   // KeyGenAlg.FLOAT
            // calculate ceil(log10(N))
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.