BoundingBox { public boolean intersectsFrustum(Frustum frustum) { if (frustum == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "BoundingBox", "intersectsFrustum", "missingFrustum")); } this.endPoint1.set(this.bottomCenter); this.endPoint2.set(this.topCenter); if (this.intersectsAt(frustum.near) < 0) { return false; } if (this.intersectsAt(frustum.far) < 0) { return false; } if (this.intersectsAt(frustum.left) < 0) { return false; } if (this.intersectsAt(frustum.right) < 0) { return false; } if (this.intersectsAt(frustum.top) < 0) { return false; } if (this.intersectsAt(frustum.bottom) < 0) { return false; } return true; } BoundingBox(); @Override String toString(); boolean isUnitBox(); BoundingBox setToUnitBox(); BoundingBox setToPoints(float[] array, int count, int stride); BoundingBox setToSector(Sector sector, Globe globe, float minHeight, float maxHeight); BoundingBox translate(double x, double y, double z); double distanceTo(Vec3 point); boolean intersectsFrustum(Frustum frustum);  }
@Ignore @Test public void testIntersectsFrustum() throws Exception { BoundingBox boundingBox = new BoundingBox(); float minElevation = 0; float maxElevation = 1000; Sector sector = Sector.fromDegrees(-0.5, -0.5, 1d, 1d); boundingBox.setToSector(sector, globe, minElevation, maxElevation); fail("The test case is a stub."); }