diff options
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java | 13 |
1 files changed, 13 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 531ea99ec..463767881 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java +++ b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java @@ -203,6 +203,19 @@ public class AABBox { } /** + * Assign values of given AABBox to this instance. + * + * @param o source AABBox + * @return this AABBox for chaining + */ + public final AABBox set(final AABBox o) { + this.low.set(o.low); + this.high.set(o.high); + this.center.set(o.center); + return this; + } + + /** * Resize the AABBox to encapsulate another AABox * @param newBox AABBox to be encapsulated in * @return this AABBox for chaining |