gov.nasa.javaGenes.chemistry
Class UnitCell
java.lang.Object
gov.nasa.javaGenes.chemistry.UnitCell
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- UnitCellNone
- public class UnitCell
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
UnitCell()
|
UnitCell(double size)
|
UnitCell(double x,
double y,
double z)
|
UnitCell(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
|
UnitCell(java.lang.String unitCellString)
|
Method Summary |
UnitCell |
copy()
|
double |
getAngle(Vertex x,
Vertex center,
Vertex z)
|
double |
getDistance(Vertex a,
Vertex b)
|
double |
getSeparation(int dimension,
double a,
double b)
|
boolean |
isCutoffInBounds(double d)
|
boolean |
isInside(Vertex a)
|
void |
moveInside(Vertex v)
|
boolean |
nearlyEquals(UnitCell uc)
|
void |
scaleBy(double factor)
|
void |
setAll(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
|
void |
setDimension(int index,
double min,
double max)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
cell
protected double[][] cell
halfDistance
protected double[] halfDistance
fullDistance
protected double[] fullDistance
UnitCell
public UnitCell()
UnitCell
public UnitCell(double size)
UnitCell
public UnitCell(double x,
double y,
double z)
UnitCell
public UnitCell(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
UnitCell
public UnitCell(java.lang.String unitCellString)
copy
public UnitCell copy()
scaleBy
public void scaleBy(double factor)
setAll
public void setAll(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
toString
public java.lang.String toString()
setDimension
public void setDimension(int index,
double min,
double max)
nearlyEquals
public boolean nearlyEquals(UnitCell uc)
isInside
public boolean isInside(Vertex a)
moveInside
public void moveInside(Vertex v)
getDistance
public double getDistance(Vertex a,
Vertex b)
getAngle
public double getAngle(Vertex x,
Vertex center,
Vertex z)
getSeparation
public double getSeparation(int dimension,
double a,
double b)
isCutoffInBounds
public boolean isCutoffInBounds(double d)