if (rocketComponents != rc) {
if (rocketComponents instanceof InnerTube) {
InnerTube it = (InnerTube) rocketComponents;
- if (it.isMotorMount()) {
- if (overlaps(rc, it)) {
- mounts.add(it);
- }
+ if (overlaps(rc, it)) {
+ mounts.add(it);
}
}
}
* Height, in points.
*/
public float height;
+ /**
+ * Breadth, in points.
+ */
+ public float breadth = 0f;
/**
* Constructor.
height = h;
}
+ /**
+ * Constructor.
+ *
+ * @param w width
+ * @param h height
+ * @param b breadth; optionally used to represent radius
+ */
+ public Dimension(float w, float h, float b) {
+ width = w;
+ height = h;
+ breadth = b;
+ }
+
/**
* Get the width.
*
public float getHeight() {
return height;
}
+
+ /**
+ * Get the breadth.
+ *
+ * @return the breadth
+ */
+ public float getBreadth() {
+ return breadth;
+ }
}
}