コード例 #1
0
ファイル: RectangularBox.java プロジェクト: pgleeson/TestArea
  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
ファイル: RectangularBox.java プロジェクト: pgleeson/TestArea
 public float getHighestZValue() {
   // just in case the length is negative...
   return Math.max(parameterList[2].value, parameterList[2].value + parameterList[5].value);
 };
コード例 #3
0
ファイル: RectangularBox.java プロジェクト: pgleeson/TestArea
 public float getLowestYValue() {
   // just in case the length is negative...
   return Math.min(parameterList[1].value, parameterList[1].value + parameterList[4].value);
 };