Examples of plus()


Examples of Jama.Matrix.plus()

     
      for(int i=0;i<this.iterations;i++)
      {
        tkplus1Matrix = trans.times(tkMatrix);
        tkplus1Matrix = tkplus1Matrix.times(1-a);
        tkplus1Matrix = tkplus1Matrix.plus(pMatrix.times(a));
        tkMatrix = new Matrix(tkplus1Matrix.getArrayCopy());
        //System.out.println(printMatrix(tkplus1Matrix.getArray()));
        //System.out.println("row=" + tkplus1Matrix.getRowDimension() + " column="+tkplus1Matrix.getColumnDimension());
      }
     

Examples of ai.domain.interval.IntervalExpressionSemantics.plus()

  @Test
  public void testPlus(){
    IntervalExpressionSemantics sem = new IntervalExpressionSemantics();
    //bottom
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.plus(Interval.BOTTOM, Interval.BOTTOM));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.plus(Interval.BOTTOM, new Interval(-1,2)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.plus(Interval.BOTTOM, new Interval(1, Double.POSITIVE_INFINITY)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.plus(Interval.BOTTOM, new Interval(Double.NEGATIVE_INFINITY, 1)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.plus(Interval.BOTTOM, new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.plus(new Interval(-1,2), Interval.BOTTOM));

Examples of aspect.util.Vector3.plus()

                Matrix4x4 m = ent.transform.global.getMdlMatrix();
                Vector3 point = m.transformPoint(new Vector3(1.0f, 0.0f, 3.0f));

                Vector3 vel = Frigate.this.rigidBody().velocity;

                vel = vel.plus(Vector3.cross(Frigate.this.rigidBody().angularVelocity, point.minus(ent.transform.global.position)));

                World.main.add(new Trail(point, vel.plus(ent.transform.global.forward().times(-20.0f)), Frigate.this));
            }
        }
    }

Examples of ca.eandb.jmist.framework.color.Color.plus()

   */
  @Override
  public Color getColor(SurfacePoint p, WavelengthPacket lambda) {
    Color result = inner.getColor(p, lambda);
    Color min = lambda.getColorModel().getGray(range.minimum(), lambda);
    return min.plus(result.times(range.length()));
  }

}

Examples of ca.eandb.jmist.math.Point3.plus()

    int i = 0;
    while (true) {
      double t = (double) segment / (double) segments;
      double width = MathUtil.interpolate(baseWidth, tipWidth, t);

      strand.vertices[i++] = pos.plus(basis.toStandard(-0.5 * width * co, -0.5 * width * so, 0.0));
      strand.vertices[i++] = pos.plus(basis.toStandard(0.5 * width * co, 0.5 * width * so, 0.0));

      if (++segment > segments) {
        break;
      }

Examples of ca.eandb.jmist.math.Vector3.plus()

      Face face = faces.get(i);
      for (int j = 0; j < face.normalIndices.length; j++) {
        int k = face.normalIndices[j];
        if (toGenerate.get(k)) {
          Vector3 normal = normals.get(k);
          normal = normal.plus(face.plane.normal());
          normals.set(k, normal);
        }
      }
    }
    for (int i = 0; i < n; i++) {

Examples of colonies.src.Point.plus()

      // if destination not yet established, search for shelter
      if(destination == null){
        Point candidate = new Point();
        for(int i = 0; i < 10; ++i){
          candidate.polarTranslation(Utility.rng.nextRadian(), Math.PI/2, Utility.rng.nextInt(20));
          candidate.plus(citizen.posX, citizen.posY, citizen.posZ);
          Utility.terrainAdjustment(citizen.worldObj, candidate);
          if(!citizen.worldObj.canBlockSeeTheSky((int)candidate.x, (int)candidate.y, (int)candidate.z)){
            destination = candidate;
            citizen.getNavigator().tryMoveToXYZ(destination.x, destination.y, destination.z, 0.35f);
          } // else try another spot

Examples of com.avaje.ebeaninternal.server.lib.sql.PooledConnectionStatistics.LoadValues.plus()

        LoadValues aggregate = collectedStats.getValues(reset);

        freeList.collectStatistics(aggregate, reset);
        busyList.collectStatistics(aggregate, reset);

        aggregate.plus(accumulatedValues);
       
        this.accumulatedValues = (reset) ? new LoadValues() : aggregate;
       
        return new DataSourcePoolStatistics(aggregate.getCollectionStart(), aggregate.getCount(), aggregate.getErrorCount(), aggregate.getHwmMicros(), aggregate.getTotalMicros());
       

Examples of com.cedarsoft.business.Money.plus()

      //add the rent for the amount
      Money interest = getBackingCalculationSystem().calculateInterest( amount, monthYears, monthDays, monthRate );
      rentSummer.plus( interest );

      //Build the information object (if expected)
      interestDetails.add( new InterestDetails( actualMonthBegin, actualMonthEnd, monthRate, baseForMonth, interest.plus( compoundInterest ), monthDays ) );

      //Next month --> now we really need the first day of the month
      actualMonthBegin = actualMonthBegin.plusMonths( 1 ).withDayOfMonth( 1 );
    }

Examples of com.cedarsoft.business.MutableMoney.plus()

      Money baseForMonth = rentSummer.immutable();

      Money compoundInterest;
      if ( getBackingCalculationSystem().isCompoundSystem() && baseForMonth.getValue() != 0 ) {
        compoundInterest = getBackingCalculationSystem().calculateInterest( baseForMonth, monthYears, monthDays, monthRate );
        rentSummer.plus( compoundInterest );
      } else {
        compoundInterest = Money.ZERO;
      }

      //add the rent for the amount
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.