public class Sphere
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Sphere(R3 ptOrg,
double dblRad)
Creates a new instance of SphereR3 initialized to the arguments.
|
Modifier and Type | Method and Description |
---|---|
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
|
public Sphere(R3 ptOrg, double dblRad)
ptOrg
- the centroid of the spheredblRad
- the radius of the spherepublic double getRadius()
public R3 getCentroid()
public boolean membership(R3 pt)
pt
- point to be tested for membershippublic boolean boundary(R3 pt)
pt
- point to be tested for boundary membershippublic double volume()