Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. for(int i = 0; i < 8; i++ )
  2. {
  3. bool cornerIn = true;
  4. for(int j = 0; j < 6; j++ )
  5. {
  6. if(box.corner(i).x * frustum_planes[j].a + box.corner(i).y * frustum_planes[j].b + box.corner(i).z * frustum_planes[j].c + frustum_planes[j].d <= 0)
  7. {
  8. cornerIn = false;
  9. }
  10. }
  11. if(cornerIn)
  12. {
  13. return true;
  14. }
  15. }
Add Comment
Please, Sign In to add comment