gov.sns.tools.math.r3
Class ClosedBox

java.lang.Object
  |
  +--gov.sns.tools.math.r3.ClosedBox
All Implemented Interfaces:
java.io.Serializable

public class ClosedBox
extends java.lang.Object
implements java.io.Serializable

Represents a cartesian set in R3.

See Also:
Serialized Form

Field Summary
 ClosedInterval I1
          first dimension extent of domain
 ClosedInterval I2
          second dimension extent of domain
 ClosedInterval I3
          third dimension extent of domain
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

I1

public ClosedInterval I1
first dimension extent of domain


I2

public ClosedInterval I2
second dimension extent of domain


I3

public ClosedInterval I3
third dimension extent of domain

Constructor Detail

ClosedBox

public ClosedBox()
Default constructor - creates an empty DomainR3 object to be initialized by the user


ClosedBox

public ClosedBox(ClosedInterval I1,
                 ClosedInterval I2,
                 ClosedInterval I3)
Initializing constructor - creates a new instance of DomainR3 according to the given parameters.

Parameters:
I1 - interval of definition in x dimension
I2 - interval of definition in y dimension
I3 - interval of definition in z dimension

ClosedBox

public 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. Not that the box is defined by the intervals [xmin,xmax] interval of definition in x dimension [ymin,ymax] interval of definition in y dimension [zmin,zmax] interval of definition in z dimension

Parameters:
xmin - x dimension minimum value
xmax - x dimension maximum value
ymin - y dimension minimum value
ymax - y dimension maximum value
zmin - z dimension minimum value
zmax - z dimension maximum value
Method Detail

get1

public ClosedInterval get1()
Get first dimension extent


get2

public ClosedInterval get2()
Get second dimension extent


get3

public ClosedInterval get3()
Get second dimension extent


getXDimension

public ClosedInterval getXDimension()
Get the x dimension


getYDimension

public ClosedInterval getYDimension()
Get the y dimension


getZDimension

public ClosedInterval getZDimension()
Get the z dimension


getVertexMin

public R3 getVertexMin()
Get the minimum vertex


getVertexMax

public R3 getVertexMax()
Get the maximum vertex


membership

public boolean membership(R3 pt)
Determine whether point pt is an element of the domain.

Returns:
true if pt is in domain

boundary

public boolean boundary(R3 pt)
Determine whether or not point pt is member of the boundary of this set.

Returns:
true if pt is a boundary element

centroid

public R3 centroid()
Compute the centroid of the domain


diameter

public double diameter()
Computes the diameter of the domain.


volume

public double volume()
Compute the volume of the domain.


dimensions

public R3 dimensions()
Compute the dimensions of the domain

Returns:
(lx,ly,lz)

print

public void print(java.io.PrintWriter os)
Print out contents on an output stream

Parameters:
os - output stream receiving content dump

println

public void println(java.io.PrintWriter os)
Print out contents on an output stream, terminate in newline character

Parameters:
os - output stream receiving content dump