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