Package se.llbit.math

Examples of se.llbit.math.Vector3d


  /**
   * @param other
   * @return A new vector initialized to be equal to the supplied vector.
   */
  public final Vector3d get(Vector3d other) {
    Vector3d vec;
    if (size == 0) {
      vec = new Vector3d();
    } else {
      vec = pool[--size];
    }
    vec.set(other);
    return vec;
  }
View Full Code Here


   * @param y
   * @param z
   * @return A new vector initialized to be equal to the supplied vector.
   */
  public final Vector3d get(double x, double y, double z) {
    Vector3d vec;
    if (size == 0) {
      vec = new Vector3d();
    } else {
      vec = pool[--size];
    }
    vec.set(x, y, z);
    return vec;
  }
View Full Code Here

  /**
   * @return A new, uninitialized, vector.
   */
  public final Vector3d get() {
    if (size == 0) {
      Vector3d vec = new Vector3d();
      return vec;
    } else {
      return pool[--size];
    }
  }
View Full Code Here

  public void chunksTopographyUpdated(Chunk chunk) {
    topographyUpdater.addChunk(chunk);
  }

  public void goToPlayer() {
    Vector3d pos = world.playerPos();
    if (pos != null) {
      setView(pos.x / 16.0,
          pos.z / 16.0);
    }
  }
View Full Code Here

TOP

Related Classes of se.llbit.math.Vector3d

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.