feat(JOML): add util for `Region3i` from `BlockRegion`
import org.joml.Vector2fc;
import org.joml.Vector2ic;
import org.joml.Vector3fc;
+import org.joml.Vector3i;
import org.joml.Vector3ic;
import org.joml.Vector4f;
import org.joml.Vector4fc;
@@ -193,6 +194,14 @@ public static BlockRegion from(Region3i aabb) {
}
+ public static Region3i from(BlockRegion aabb) {
+ if (aabb == null) {
+ return null;
+ }
+ return Region3i.createFromMinMax(JomlUtil.from(aabb.getMin(new Vector3i())), JomlUtil.from(aabb.getMax(new Vector3i())));
+ }
+
+
public static Rectanglei from(Rect2i rect) {
if (rect == null) {
return null;
