Frustum { public boolean intersectsViewport(Viewport viewport) { if (viewport == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Frustum", "intersectsViewport", "missingViewport")); } return this.viewport.intersects(viewport); } Frustum();  Frustum(Plane left, Plane right, Plane bottom, Plane top, Plane near, Plane far, Viewport viewport); Frustum setToUnitFrustum(); Frustum setToModelviewProjection(Matrix4 projection, Matrix4 modelview, Viewport viewport); Frustum setToModelviewProjection(Matrix4 projection, Matrix4 modelview, Viewport viewport, Viewport subViewport); boolean containsPoint(Vec3 point); boolean intersectsSegment(Vec3 pointA, Vec3 pointB); boolean intersectsViewport(Viewport viewport);  }
@Test public void testIntersectsViewport() throws Exception { Plane plane = new Plane(0, 0, 0, 0); Viewport viewport1 = new Viewport(1, 2, 3, 4); Viewport viewport2 = new Viewport(2, 3, 4, 5); Frustum frustum1 = new Frustum(plane, plane, plane, plane, plane, plane, viewport1); Assert.assertTrue(frustum1.intersectsViewport(viewport2)); }