Exemplo n.º 1
0
 public Vector3i(float x, float y, float z, float offset) {
   this.x = TeraMath.floorToInt(x + offset);
   this.y = TeraMath.floorToInt(y + offset);
   this.z = TeraMath.floorToInt(z + offset);
 }
Exemplo n.º 2
0
 public Vector3i(float x, float y, float z) {
   this.x = TeraMath.floorToInt(x);
   this.y = TeraMath.floorToInt(y);
   this.z = TeraMath.floorToInt(z);
 }
Exemplo n.º 3
0
 /**
  * Constructs the integer version of a Vector3f, by adding an offset and flooring it
  *
  * @param other
  */
 public Vector3i(Vector3f other, float offset) {
   this.x = TeraMath.floorToInt(other.x + offset);
   this.y = TeraMath.floorToInt(other.y + offset);
   this.z = TeraMath.floorToInt(other.z + offset);
 }
Exemplo n.º 4
0
 /**
  * Constructs the integer version of a Vector3f, by flooring it
  *
  * @param other
  */
 public Vector3i(Vector3f other) {
   this.x = TeraMath.floorToInt(other.x);
   this.y = TeraMath.floorToInt(other.y);
   this.z = TeraMath.floorToInt(other.z);
 }