示例#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;
  }
示例#2
0
 public float getHighestZValue() {
   // just in case the length is negative...
   return Math.max(parameterList[2].value, parameterList[2].value + parameterList[5].value);
 };
示例#3
0
 public float getLowestYValue() {
   // just in case the length is negative...
   return Math.min(parameterList[1].value, parameterList[1].value + parameterList[4].value);
 };