|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.math.r3.Sphere
Represents a sphere in three-space.
| Constructor Summary | |
Sphere(R3 ptOrg,
double dblRad)
Creates a new instance of SphereR3 initialized to the arguments. |
|
| Method Summary | |
boolean |
boundary(R3 pt)
Determine whether a point is a boundary element of the sphere |
R3 |
getCentroid()
Get the centroid of the sphere |
double |
getRadius()
Get the radius of the sphere |
boolean |
membership(R3 pt)
Determine whether a point is an element of the sphere |
double |
volume()
Compute the volume of this sphere |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Sphere(R3 ptOrg,
double dblRad)
ptOrg - the centroid of the spheredblRad - the radius of the sphere| Method Detail |
public double getRadius()
public R3 getCentroid()
public boolean membership(R3 pt)
pt - point to be tested for membership
public boolean boundary(R3 pt)
pt - point to be tested for boundary membership
public double volume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||