Examples of addX()


Examples of edu.uci.ics.jung.visualization.Coordinates.addX()

        vd.dx += vd.repulsiondx + vd.edgedx;
        vd.dy += vd.repulsiondy + vd.edgedy;

        // keeps nodes from moving any faster than 5 per time unit
        xyd.addX(Math.max(-5, Math.min(5, vd.dx)));
        xyd.addY(Math.max(-5, Math.min(5, vd.dy)));

      }
    } catch (ConcurrentModificationException cme) {
      moveNodes();
View Full Code Here

Examples of org.antlr.works.visualization.graphics.primitive.GPoint.addX()

    public FAState recursiveRenderPositionAlternative(FAState state, GPoint basePoint) {
        FAState alternativeEndState = alternativeEndState(state);

        // This point is used to position each transition
        GPoint point = new GPoint(basePoint);
        point.addX(GContext.NODE_WIDTH+GContext.EPSILON_WIDTH);

        GDimension firstAlternativeDimension = null;

        for(int t=0; t<state.getNumberOfTransitions(); t++) {
            FATransition transition = state.transition(t);
View Full Code Here

Examples of org.openpixi.pixi.physics.particles.Particle.addX()

    // valid at the neighbor.
    // However, we want the particle to keep its position at the local node.
    // Thus, we need a copy of the particle.

    Particle copy = particle.copy();
    copy.addX(-xoffset);
    copy.addPrevX(-xoffset);
    copy.addY(-yoffset);
    copy.addPrevY(-yoffset);
    sharedData.registerBorderParticle(copy);
  }
View Full Code Here

Examples of sk.fiit.jim.math.Vector3D.addX()

    assertThat(one.add(cartesian(1, 0, 0)), is(equalTo(cartesian(2, 1, 1))));
    assertThat(one.multiply(5.0), is(cartesian(5, 5, 5)));
    assertThat(one.divide(0.2), is(equalTo(cartesian(5, 5, 5))));
    assertThat(one.subtract(cartesian(0, 1, 0)), is(equalTo(cartesian(1, 0, 1))));
    assertThat(one.negate(), is(equalTo(cartesian(-1, -1, -1))));
    assertThat(one.addX(1.0), is(equalTo(cartesian(2, 1, 1))));
    assertThat(one.addY(-1.0), is(equalTo(cartesian(1, 0, 1))));
    assertThat(one.addZ(0.0), is(one));
//    original vector should remain the same
    assertThat(one, is(one));
  }
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.