Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean encloses(Box f)
- {
- // testet alle möglichen Kombinationen
- return (width >= f.width && height >= f.height && depth >= f.depth)
- || (width >= f.width && height >= f.depth && depth >= f.height)
- || (width >= f.height && height >= f.width && depth >= f.depth)
- || (width >= f.height && height >= f.depth && depth >= f.width)
- || (width >= f.depth && height >= f.width && depth >= f.height)
- || (width >= f.depth && height >= f.height && depth >= f.width);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement