summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java
index f76ae8059..531ea99ec 100644
--- a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java
+++ b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java
@@ -645,6 +645,21 @@ public class AABBox {
/**
* Translate this AABBox by a float[3] vector
+ * @param dx the translation x-component
+ * @param dy the translation y-component
+ * @param dz the translation z-component
+ * @param t the float[3] translation vector
+ * @return this AABBox for chaining
+ */
+ public final AABBox translate(final float dx, final float dy, final float dz) {
+ low.add(dx, dy, dz);
+ high.add(dx, dy, dz);
+ computeCenter();
+ return this;
+ }
+
+ /**
+ * Translate this AABBox by a float[3] vector
* @param t the float[3] translation vector
* @return this AABBox for chaining
*/