|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gnu.gleem.BSphere
Represents a bounding sphere.
| Constructor Summary | |
BSphere()
Default constructor creates a sphere with center (0, 0, 0) and radius 0 |
|
BSphere(Vec3f center,
float radius)
|
|
| Method Summary | |
void |
extendBy(BSphere arg)
Mutate this sphere to encompass both itself and the argument. |
Vec3f |
getCenter()
|
float |
getRadius()
|
void |
makeEmpty()
Re-initialize this sphere to center (0, 0, 0) and radius 0 |
void |
set(Vec3f center,
float radius)
|
void |
setCenter(Vec3f center)
|
void |
setRadius(float radius)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BSphere()
public BSphere(Vec3f center,
float radius)
| Method Detail |
public void makeEmpty()
public void setCenter(Vec3f center)
public Vec3f getCenter()
public void setRadius(float radius)
public float getRadius()
public void set(Vec3f center,
float radius)
public void extendBy(BSphere arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||