Examples of sub()


Examples of Hexel.math.Vector3d.sub()

            partialMove, tmp);
        if (movement.stoppedZ) {
          movable.stopZ();
        }
        movable.applyMoveVector(movement);
        leftToMove.sub(partialMove);
      }
      else {
        Movement movement = getMovement((Volumetric) movable,
            leftToMove, tmp);
        if (movement.stoppedZ) {
View Full Code Here

Examples of civquest.util.Coordinate.sub()

          break;   // enter the map again...
        }
    Coordinate minuscoord = (Coordinate)coord.clone();
    for(int z = 0;z < config.pldepheights_maxdistance;z++)
        {
      minuscoord = minuscoord.sub(currdir);
      minuscoord = mapdata.adjustToMapSize(minuscoord);
      if(minuscoord != null)
          {
        if(platemap[minuscoord.y][minuscoord.x] == currplate.getNumber())
            {
View Full Code Here

Examples of com.badlogic.gdx.math.Vector2.sub()

  }

  @Override
  public void onTouchStay(Vector2 touchPosition) {
    Vector2 pos = screenToWorld(touchPosition.cpy());
    transform.setLocalPosition(pos.sub(spriteRenderer.getHalfSize()));
    checkSnap();
  }
 
  @Override
  public void onTouchEnd(Vector2 touchPosition) {
View Full Code Here

Examples of com.barchart.feed.base.values.api.PriceValue.sub()

    final PriceValue priceAsk = priceTop(Book.Side.ASK);
    if (priceAsk.isNull()) {
      return ValueConst.NULL_PRICE;
    }

    return priceAsk.sub(priceBid);

  }

  @Override
  public List<Entry> entryList(final Book.Side side) {
View Full Code Here

Examples of com.barchart.util.values.api.PriceValue.sub()

    final PriceValue priceAsk = priceTop(Book.Side.ASK);
    if (priceAsk.isNull()) {
      return ValueConst.NULL_PRICE;
    }

    return priceAsk.sub(priceBid);

  }

  @Override
  public List<Entry> entryList(final Book.Side side) {
View Full Code Here

Examples of com.googlecode.jumpnevolve.math.Vector.sub()

          .add(this.camera.getPosition()).add(
              Engine.getInstance().getWidth() / 2.0f,
              Engine.getInstance().getHeight() / 2.0f);
      if (input.isMousePressed(Input.MOUSE_LEFT_BUTTON)) {
        LevelMarker newLevel = this.currentLevel
            .getLevelInDirection(mousePos
                .sub(this.currentLevel.position));

        this.currentLevel = newLevel;
      }
    }
View Full Code Here

Examples of com.nr.Complex.sub()

      err *= EPS;
      if (b.mod() <= err)
        return x;
      g=d.div(b);
      g2=g.mul(g);
      h=g2.sub(f.div(b).mul(2.0));
      sq = (h.mul(m).sub(g2).mul(m-1)).sqrt();
      //sq=sqrt((m-1)*(m*h-g2));
      gp=g.add(sq);
      gm=g.sub(sq);
      double abp=gp.mod();
View Full Code Here

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

        ones.put(0, 0, 0.5);
        ones.put(0, 1, 0.3);
        ones.put(1, 1, 0.4);

        System.out.println("ONES: " + ones.dialog());
        System.out.println("SUB: " + ones.sub(InMemoryJBlasMatrix.eye(3)));
        System.out.println("EYE" + InMemoryJBlasMatrix.eye(5));

        Matrix m = InMemoryJBlasMatrix.rand(5, null);
        m = m.product(m.transpose());
        System.out.println(m + "\n");
View Full Code Here

Examples of condor.classad.ListExpr.sub()

        ListExpr le = (ListExpr) expr;
        String s = null;

        for (int i = 0; i < le.size(); i++) {
            s = getString(le.sub(i));

            if (s.length() > 0) {
                result.add(s);
            }
        }
View Full Code Here

Examples of crazypants.vecmath.Vector3d.sub()

          return true;
        }
        //need to step
        Vector3d sv = new Vector3d(start.xCoord, start.yCoord, start.zCoord);
        Vector3d rayDir = new Vector3d(target.xCoord, target.yCoord, target.zCoord);
        rayDir.sub(sv);
        rayDir.normalize();
        rayDir.add(sv);
        return canBlinkTo(bc, w, Vec3.createVectorHelper(rayDir.x, rayDir.y, rayDir.z), target);

      } else {
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.