public class ClosedBox
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
ClosedInterval |
I1
first dimension extent of domain
|
ClosedInterval |
I2
second dimension extent of domain
|
ClosedInterval |
I3
third dimension extent of domain
|
Constructor and Description |
---|
ClosedBox()
Default constructor - creates an empty DomainR3 object to be initialized by the
user
|
ClosedBox(ClosedInterval I1,
ClosedInterval I2,
ClosedInterval I3)
Initializing constructor - creates a new instance of DomainR3 according to the
given parameters.
|
ClosedBox(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
Initializing constructor - creates a new instance of DomainR3 according to the
given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
boundary(R3 pt)
Determine whether or not point pt is member of the boundary of this set.
|
R3 |
centroid()
Compute the centroid of the domain
|
double |
diameter()
Computes the diameter of the domain.
|
R3 |
dimensions()
Compute the dimensions of the domain
|
ClosedInterval |
get1()
Get first dimension extent
|
ClosedInterval |
get2()
Get second dimension extent
|
ClosedInterval |
get3()
Get second dimension extent
|
R3 |
getVertexMax()
Get the maximum vertex
|
R3 |
getVertexMin()
Get the minimum vertex
|
ClosedInterval |
getXDimension()
Get the x dimension
|
ClosedInterval |
getYDimension()
Get the y dimension
|
ClosedInterval |
getZDimension()
Get the z dimension
|
boolean |
membership(R3 pt)
Determine whether point pt is an element of the domain.
|
void |
print(java.io.PrintWriter os)
Print out contents on an output stream
|
void |
println(java.io.PrintWriter os)
Print out contents on an output stream, terminate in newline character
|
double |
volume()
Compute the volume of the domain.
|
public ClosedInterval I1
public ClosedInterval I2
public ClosedInterval I3
public ClosedBox()
public ClosedBox(ClosedInterval I1, ClosedInterval I2, ClosedInterval I3)
I1
- interval of definition in x dimensionI2
- interval of definition in y dimensionI3
- interval of definition in z dimensionpublic ClosedBox(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) throws MathException
xmin
- x dimension minimum valuexmax
- x dimension maximum valueymin
- y dimension minimum valueymax
- y dimension maximum valuezmin
- z dimension minimum valuezmax
- z dimension maximum valueMathException
- one or more axis intervals are malformed
(i.e., αmax < αmin,
where α ∈ {x,y,z})public ClosedInterval get1()
public ClosedInterval get2()
public ClosedInterval get3()
public ClosedInterval getXDimension()
public ClosedInterval getYDimension()
public ClosedInterval getZDimension()
public R3 getVertexMin()
public R3 getVertexMax()
public boolean membership(R3 pt)
public boolean boundary(R3 pt)
public R3 centroid()
public double diameter()
public double volume()
public R3 dimensions()
public void print(java.io.PrintWriter os)
os
- output stream receiving content dumppublic void println(java.io.PrintWriter os)
os
- output stream receiving content dump