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