diff --git a/src/org/joml/AABBd.java b/src/org/joml/AABBd.java
index 3ff9a31e9..06c79cc7a 100644
--- a/src/org/joml/AABBd.java
+++ b/src/org/joml/AABBd.java
@@ -143,9 +143,27 @@ public AABBd(double minX, double minY, double minZ, double maxX, double maxY, do
this.maxZ = maxZ;
}
+ /**
+ * Set this {@link AABBd} to be a clone of source
.
+ *
+ * @param source
+ * the {@link AABBd} to copy from
+ * @return this
+ */
+ public AABBd set(AABBd source){
+ this.minX = source.minX;
+ this.minY = source.minY;
+ this.minZ = source.minZ;
+ this.maxX = source.maxX;
+ this.maxY = source.maxY;
+ this.maxZ = source.maxZ;
+ return this;
+ }
+
+
/**
* Set the minimum corner coordinates.
- *
+ *
* @param minX
* the x coordinate of the minimum corner
* @param minY
diff --git a/src/org/joml/AABBf.java b/src/org/joml/AABBf.java
index 4b59b2d29..06132b8c6 100644
--- a/src/org/joml/AABBf.java
+++ b/src/org/joml/AABBf.java
@@ -126,6 +126,23 @@ public AABBf(float minX, float minY, float minZ, float maxX, float maxY, float m
this.maxZ = maxZ;
}
+ /**
+ * Set this {@link AABBf} to be a clone of source
.
+ *
+ * @param source
+ * the {@link AABBf} to copy from
+ * @return this
+ */
+ public AABBf set(AABBf source){
+ this.minX = source.minX;
+ this.minY = source.minY;
+ this.minZ = source.minZ;
+ this.maxX = source.maxX;
+ this.maxY = source.maxY;
+ this.maxZ = source.maxZ;
+ return this;
+ }
+
/**
* Set the minimum corner coordinates.
*
diff --git a/src/org/joml/AABBi.java b/src/org/joml/AABBi.java
index 6cf6effe1..1ef88a9d6 100644
--- a/src/org/joml/AABBi.java
+++ b/src/org/joml/AABBi.java
@@ -156,6 +156,23 @@ public AABBi setMax(int maxX, int maxY, int maxZ) {
return this;
}
+ /**
+ * Set this {@link AABBi} to be a clone of source
.
+ *
+ * @param source
+ * the {@link AABBi} to copy from
+ * @return this
+ */
+ public AABBi set(AABBi source){
+ this.minX = source.minX;
+ this.minY = source.minY;
+ this.minZ = source.minZ;
+ this.maxX = source.maxX;
+ this.maxY = source.maxY;
+ this.maxZ = source.maxZ;
+ return this;
+ }
+
/**
* Set the minimum corner coordinates.
*