Esempio n. 1
0
  public Region getTranslatedRegion(Vector3f trans) {
    RectangularBox newBox =
        new RectangularBox(
            this.getLowestXValue() + trans.x,
            this.getLowestYValue() + trans.y,
            this.getLowestZValue() + trans.z,
            Math.abs(this.parameterList[3].value),
            Math.abs(this.parameterList[4].value),
            Math.abs(this.parameterList[5].value));

    return newBox;
  }
Esempio n. 2
0
 public float getHighestZValue() {
   // just in case the length is negative...
   return Math.max(parameterList[2].value, parameterList[2].value + parameterList[5].value);
 };
Esempio n. 3
0
 public float getLowestYValue() {
   // just in case the length is negative...
   return Math.min(parameterList[1].value, parameterList[1].value + parameterList[4].value);
 };