source: trunk/src/org/expeditee/core/bounds/CombinationBoxBounds.java@ 1097

Last change on this file since 1097 was 1097, checked in by davidb, 6 years ago

Newly structured files from Corey's work on logic/graphics separation

File size: 621 bytes
Line 
1package org.expeditee.core.bounds;
2
3/**
4 * The CombinationBoxBounds represents a combination bounds where every
5 * component bounds is an axis-aligned box.
6 *
7 * @author cts16
8 */
9public class CombinationBoxBounds extends CombinationBounds {
10
11 /** Default constructor. */
12 public CombinationBoxBounds()
13 {
14 super();
15 }
16 /** Standard constructor. */
17 public CombinationBoxBounds(AxisAlignedBoxBounds b)
18 {
19 super(b);
20 }
21
22 @Override
23 public CombinationBoxBounds add(Bounds b)
24 {
25 // Ensure we are only adding boxes to the underlying bounds
26 if (b instanceof AxisAlignedBoxBounds) super.add(b);
27
28 return this;
29 }
30}
Note: See TracBrowser for help on using the repository browser.