Frustum::Result Frustum::checkBox(const BBox& box) const{
  Result res = INSIDE;
  for(int i = 0; i < 6; ++i){
    if (mPlanes[i].distance(box.getNearestCorner(mPlanes[i].getNormal())) < 0){
      return OUTSIDE;
    }
    else if (mPlanes[i].distance(box.getFarestCorner(mPlanes[i].getNormal())) < 0){
      res = INTERSECT;
    }
  }
  return res;
}