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); }
public Vector3i(float x, float y, float z) { this.x = TeraMath.floorToInt(x); this.y = TeraMath.floorToInt(y); this.z = TeraMath.floorToInt(z); }
/** * 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); }
/** * 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); }