Package com.googlecode.jumpnevolve.math

Examples of com.googlecode.jumpnevolve.math.Vector


          p.setSize(50.0f);
        }
      }

      public void updateParticle(Particle particle, int delta) {
        if (new Vector(particle.getX(), particle.getY()).squareAbs() > AirFlowEmitterFactory.this.distance
            * AirFlowEmitterFactory.this.distance) {
          particle.kill();
        }
        particle.adjustVelocity(((float) Math.random() - 0.5f)
            * 0.00005f * delta, ((float) Math.random() - 0.5f)
View Full Code Here


  }

  public void setMainContainer(InterfaceContainer con) {
    this.remove(this.mainCon);
    this.mainCon = con;
    this.add(this.mainCon, new Vector(0, this.headlineCon.getNeededSize()
        .getYRange()));
  }
View Full Code Here

  public Vector getPositionFor(InterfacePart object) {
    if (this.invertList.containsKey(object)) {
      int listPos = this.invertList.get(object);
      if (listPos != DOWN_POS && listPos != UP_POS) {
        if (listPos < this.curPos) {
          return new Vector(0.0f, -InterfaceTextButton.getSize() * 10);
        }
        if (listPos >= this.curPos + this.numberOfButtonsDisplayed) {
          return new Vector(0.0f, -InterfaceTextButton.getSize() * 10);
        }
      }
      listPos = listPos - this.curPos;
      return getPositionForListPos(listPos).add(
          this.parentContainer.getPositionFor(this));
View Full Code Here

    if (listPos + this.curPos == DOWN_POS) {
      listPos = this.numberOfButtonsDisplayed;
    } else if (listPos + this.curPos == UP_POS) {
      listPos = -1;
    }
    return new Vector(0.0f,
        (InterfaceTextButton.getSize() + this.distanceBetweenButtons)
            * (listPos + 1));

  }
View Full Code Here

TOP

Related Classes of com.googlecode.jumpnevolve.math.Vector

Copyright © 2018 www.massapicom. 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.