Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public boolean encloses(Box f)
  2. {
  3. // testet alle möglichen Kombinationen
  4. return (width >= f.width && height >= f.height && depth >= f.depth)
  5. || (width >= f.width && height >= f.depth && depth >= f.height)
  6. || (width >= f.height && height >= f.width && depth >= f.depth)
  7. || (width >= f.height && height >= f.depth && depth >= f.width)
  8. || (width >= f.depth && height >= f.width && depth >= f.height)
  9. || (width >= f.depth && height >= f.height && depth >= f.width);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement