public boolean[] doFrustumCheck(Vector3D[] frustumCorners,Vector3D frustumPos,double x,double y,double z){
  Vector3D point=new Vector3D(x,y,z);
  boolean c1=crossPlane(new Vector3D[]{frustumPos,frustumCorners[3],frustumCorners[0]},point);
  boolean c2=crossPlane(new Vector3D[]{frustumPos,frustumCorners[0],frustumCorners[1]},point);
  boolean c3=crossPlane(new Vector3D[]{frustumPos,frustumCorners[1],frustumCorners[2]},point);
  boolean c4=crossPlane(new Vector3D[]{frustumPos,frustumCorners[2],frustumCorners[3]},point);
  return new boolean[]{c1,c2,c3,c4};
}

public boolean [ ] doFrustumCheck ( Vector3D [ ] frustumCorners , Vector3D frustumPos , double x , double y , double z ) { Vector3D point = new Vector3D ( x , y , z ) ; boolean c1 = crossPlane ( new Vector3D [ ] { frustumPos , frustumCorners [ 3 ] , frustumCorners [ 0 ] } , point ) ; boolean c2 = crossPlane ( new Vector3D [ ] { frustumPos , frustumCorners [ 0 ] , frustumCorners [ 1 ] } , point ) ; boolean c3 = crossPlane ( new Vector3D [ ] { frustumPos , frustumCorners [ 1 ] , frustumCorners [ 2 ] } , point ) ; boolean c4 = crossPlane ( new Vector3D [ ] { frustumPos , frustumCorners [ 2 ] , frustumCorners [ 3 ] } , point ) ; return new boolean [ ] { c1 , c2 , c3 , c4 } ; }
performs a frustum check .
