@Test public void testSphereInFrustum() { final Vector3 center = new Vector3(); final double radius = 0; boolean result = frustum.sphereInFrustum(center, radius); assertTrue(result); }
public boolean sphereInFrustum(Vector3 center, double radius) { for(int i=0; i<6; i++) { double distance = mPlanes[i].getDistanceTo(center); if(distance < -radius) return false; } return true; }
Frustum { public boolean sphereInFrustum(Vector3 center, double radius) { for(int i=0; i<6; i++) { double distance = mPlanes[i].getDistanceTo(center); if(distance < -radius) return false; } return true; } }
Frustum { public boolean sphereInFrustum(Vector3 center, double radius) { for(int i=0; i<6; i++) { double distance = mPlanes[i].getDistanceTo(center); if(distance < -radius) return false; } return true; } Frustum(); }
Frustum { public boolean sphereInFrustum(Vector3 center, double radius) { for(int i=0; i<6; i++) { double distance = mPlanes[i].getDistanceTo(center); if(distance < -radius) return false; } return true; } Frustum(); void update(Matrix4 inverseProjectionView); boolean sphereInFrustum(Vector3 center, double radius); boolean boundsInFrustum(BoundingBox bounds); boolean pointInFrustum(Vector3 point); }
Frustum { public boolean sphereInFrustum(Vector3 center, double radius) { for(int i=0; i<6; i++) { double distance = mPlanes[i].getDistanceTo(center); if(distance < -radius) return false; } return true; } Frustum(); void update(Matrix4 inverseProjectionView); boolean sphereInFrustum(Vector3 center, double radius); boolean boundsInFrustum(BoundingBox bounds); boolean pointInFrustum(Vector3 point);  }