summaryrefslogtreecommitdiff
path: root/src/tesseract/objects
diff options
context:
space:
mode:
authorPhillip <pacardon@u.washington.edu>2011-02-21 00:08:11 +0000
committerPhillip <pacardon@u.washington.edu>2011-02-21 00:08:11 +0000
commit88510c4f90193b59c366901536c933b3176c20c2 (patch)
tree3e068b35c9ebdb667671c45cc47d587a43d8ff21 /src/tesseract/objects
parent3c7f3b099198d4ea36d498c349cad80f2a6937de (diff)
Added lots of NewMenuItem Classes. Changed Default Shape from JCheckBox to JButton.
Added new Constructor to PlanarPolygon. Changed the sequence of events building JPanel/Frame in MenuItem.
Diffstat (limited to 'src/tesseract/objects')
-rw-r--r--src/tesseract/objects/PlanarPolygon.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tesseract/objects/PlanarPolygon.java b/src/tesseract/objects/PlanarPolygon.java
index 0521062..30eac77 100644
--- a/src/tesseract/objects/PlanarPolygon.java
+++ b/src/tesseract/objects/PlanarPolygon.java
@@ -54,7 +54,12 @@ public class PlanarPolygon extends PhysicalObject {
/**
* Number of divisions in the sphere.
*/
- private static final int DEFAULT_DIVISIONS = 6;
+ public static final int DEFAULT_DIVISIONS = 6;
+
+ /**
+ * A Default radius.
+ */
+ public static final float DEFAULT_RADIUS = 0.1f;
/**
* Create a new Ellipsoid.
@@ -62,11 +67,7 @@ public class PlanarPolygon extends PhysicalObject {
* @param position Initial position.
* @param mass Initial mass.
* @param radius the radius of the base sphere.
- * @param primflags an int for the base spere primflags.
* @param divisions an in for the shape divisions.
- * @param appearance an Appearance object.
- * @param b a float for the b portion of the ellipsoid formula.
- * @param c a float for the c portion of the ellipsoid formula.
*/
public PlanarPolygon(final Vector3f position, final float mass,
final float radius, final int divisions) {