示例#1
0
 unsafe bool LocalFrustumIntersectsBounds(Vector3 *points, ref Bounds bounds)
 {
     for (int i = 0; i < 4; i++)
     {
         if (bounds.LineIntersection(ref points[i], ref points[4 + i]))
         {
             return(true);
         }
     }
     if (nearDistance > 0.0f)
     {
         for (int i = 0; i < 4; i++)
         {
             if (bounds.LineIntersection(ref points[i], ref points[(i + 1) & 3]))
             {
                 return(true);
             }
         }
     }
     for (int i = 0; i < 4; i++)
     {
         if (bounds.LineIntersection(ref points[4 + i], ref points[4 + ((i + 1) & 3)]))
         {
             return(true);
         }
     }
     return(false);
 }