|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable backend.spheremodel.SphereModel
public class SphereModel
SphereModel is a model of our sphere
Constructor Summary | |
---|---|
SphereModel(javax.vecmath.Point3f center,
float radius)
SphereModel default constructor |
Method Summary | |
---|---|
float |
getArea()
getArea will return the surface area of the sphere |
javax.vecmath.Point3f |
getCenter()
getCenter returns a copy of the center point of the sphere |
float |
getCircumference()
getCircumferenece will return the circumference of the sphere |
float |
getRadius()
getRadius returns the current radius of the sphere |
float |
getRadiusSquared()
getRadiusSquared returns the radius of the sphere squared. |
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphereModel(javax.vecmath.Point3f center, float radius)
center
- the center point of the sphereradius
- the radius of the sphereMethod Detail |
---|
public float getRadius()
public float getRadiusSquared()
public javax.vecmath.Point3f getCenter()
public float getCircumference()
public float getArea()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |