code: private BoundingBox transform(BoundingBox boundingBox, Matrix4f matrix) {
          boundingBox.clear();
          if (boundingBox.mVertices != null) {
              for (Vector3f v : boundingBox.mVertices) {
                  v.mulPosition(matrix);
                  boundingBox.expand(v);
              }
          }
          return boundingBox;
      }
docs: Apply a transform to {@code boundingBox}.
  
  @param boundingBox
  The {@link BoundingBox} to apply the transform to.
  @param matrix
  The transformation matrix to apply.
  @return The transformed {@code BoundingBox}.