|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.Sphere
public class Sphere
Represents a sphere.
Constructor Summary | |
---|---|
Sphere()
Default constructor creates a sphere with center (0, 0, 0) and radius 0 |
|
Sphere(Box3f box)
|
|
Sphere(Sphere other)
|
|
Sphere(Vec3f center,
float radius)
|
Method Summary | |
---|---|
void |
extendBy(Sphere 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(Box3f box)
Sets this sphere to encompass the given box |
void |
set(Sphere other)
Sets the parameters of this sphere to those of the given one |
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 Sphere()
public Sphere(Vec3f center, float radius)
public Sphere(Sphere other)
public Sphere(Box3f box)
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 set(Sphere other)
public void set(Box3f box)
public void extendBy(Sphere arg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |