diff options
author | Sven Gothel <[email protected]> | 2023-08-25 18:44:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-08-25 18:44:31 +0200 |
commit | faa80aa8c6e5231ed4c00df6ccb0fb715974eb40 (patch) | |
tree | 6304a1b7ab6ea908e839b6a276f4a7c9503a8814 /src/jogl/classes | |
parent | dafb6cc85b4f183d12bfb34e702f01860fe2b59c (diff) |
AABBox: Add set(AABBox)
Diffstat (limited to 'src/jogl/classes')
-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 |