Examples of div()


Examples of bm.core.math.FixedPoint.div()

    private String sizeIn( final long size, final int divisor )
    {
        FixedPoint f = new FixedPoint( size );
        f = f.setPrecision( 5 );
        f = f.div( divisor );
        f = f.setPrecision( 1 );
        return f.toString();
    }

    private void processPreferencesView( final ControllerEvent event )
View Full Code Here

Examples of bm.core.math.FixedPoint.div()

    private String sizeIn( final long size, final int divisor )
    {
        FixedPoint f = new FixedPoint( size );
        f = f.setPrecision( 5 );
        f = f.div( divisor );
        f = f.setPrecision( 1 );
        return f.toString();
    }

    private void processPreferencesView( final ControllerEvent event )
View Full Code Here

Examples of br.com.caelum.seleniumdsl.Page.div()

    form.submit();

    Page page = browser.currentPage();

    Assert.assertEquals("Login", page.title());
    Assert.assertTrue(page.div("errors")
        .contains("Invalid login!"));

    Assert.assertTrue(form.isChecked("rememeber"));
    // ensures that the form remains with the previously typed login
    Assert.assertEquals(form.field("login")
View Full Code Here

Examples of br.com.caelum.seleniumdsl.Page.div()

    form.submit();

    Page page = browser.currentPage();

    Assert.assertEquals("Login", page.title());
    Assert.assertTrue(page.div("errors").contains("Invalid login!"));

    Assert.assertTrue(form.isChecked("remember"));
    // ensures that the form remains with the previously typed login
    Assert.assertEquals(form.field("login").content(), "invalid_login");
    // or
View Full Code Here

Examples of cn.edu.buu.calculator.model.Calculator.div()

    }else if(operator.equals("-")){
      result = calc.minus();
    }else if(operator.equals("*")){
      result = calc.multiplication();
    }else if(operator.equals("/")){
      result = calc.div();
    }else{
     
    }
   
    // �õ�session�ռ�
View Full Code Here

Examples of com.exigen.ie.constrainer.IntExp.div()

  /**
   * @return this / value
   */
  public javax.constraints.Var divide(int value) {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.div(value));
  }

  /**
   * @return this / var
   */
 
View Full Code Here

Examples of com.exigen.ie.constrainer.IntExp.div()

  /**
   * @return this / var
   */
  public javax.constraints.Var divide(javax.constraints.Var var) throws Exception {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.div((IntExp)var.getImpl()));
  }

  /**
   * @return -this
   */
 
View Full Code Here

Examples of de.fhpotsdam.unfolding.geo.Location.div()

  public static Location getEuclideanCentroid(List<Location> locations) {
    Location center = new Location(0, 0);
    for (Location loc : locations) {
      center.add(loc);
    }
    center.div((float) locations.size());
    return center;
  }

  /**
   * Returns the geometric center of the locations of a polygon.
View Full Code Here

Examples of de.fhpotsdam.unfolding.geo.Location.div()

  public Location getLocation() {
    Location center = new Location(0, 0);
    for (Marker marker : markers) {
      center.add(marker.getLocation());
    }
    center.div((float) markers.size());
    return center;
  }

  @Override
  public void setLocation(float lat, float lng) {
View Full Code Here

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

    @Override
    public Vector2D getPointInVisualization(Vector3D fieldPos2) {
        Rectangle2D bdb = this.env.getBoundingBox(false);
        Vector2D envSizeTrans = new Vector2D(bdb.middle());
        envSizeTrans.div(-1);
       
        Vector2D fieldPos = new Vector2D(fieldPos2.x, fieldPos2.y);
        fieldPos.translate(envSizeTrans);
       
        Vector3D fieldPos3D = new Vector3D(
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.