code: public boolean intersectsCuboid(Vector3f[] vertices, float x, float y, float z) {
          if (vertices.length != 8) {
              throw new IllegalArgumentException("A cuboid has 8 vertices, not " + vertices.length);
          }
          planes:
          for (int i = 0; i < 6; i++) {
              for (Vector3f vertex : vertices) {
                  if (distance(i, vertex.getX() + x, vertex.getY() + y, vertex.getZ() + z) > 0) {
                      continue planes;
                  }
              }
              return false;
          }
          return true;
      }
docs: Checks if the frustum of this camera intersects the given cuboid vertices.
  
  @param vertices The cuboid local vertices to check the frustum against
  @param x The x coordinate of the cuboid position
  @param y The y coordinate of the cuboid position
  @param z The z coordinate of the cuboid position
  @return Whether or not the frustum intersects the cuboid