AbstractLattice<Vector>
, CubicLattice
, SpaceLattice
public class LatticeCubicDiamond extends BravaisLatticeCrystal implements CubicLattice
primitive
basis
Constructor | Description |
---|---|
LatticeCubicDiamond(Space space) |
Cubic bcc crystal with a lattice constant that gives a maximum-density
structure for spheres of unit size.
|
LatticeCubicDiamond(Space space,
double latticeConstant) |
Modifier and Type | Method | Description |
---|---|---|
double |
getLatticeConstant() |
Accesses the size of the unit cell, the length of each edge of a single cell.
|
void |
scaleBy(double scaleFactor) |
Rescales the lattice by the given factor.
|
void |
setLatticeConstant(double latticeConstant) |
The lattice constant is the size of the cubic primitive vectors
of the lattice underlying this crystal.
|
java.lang.String |
toString() |
Returns "Diamond".
|
D
getLatticeConstants, getPrimitive, getSpace, setPrimitive
D, getBasis, site
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLatticeConstants, getSpace, site
public LatticeCubicDiamond(Space space)
Use scaleBy method if desired to make lattice constant give maximum density for another sphere size.
public LatticeCubicDiamond(Space space, double latticeConstant)
public void setLatticeConstant(double latticeConstant)
setLatticeConstant
in interface CubicLattice
latticeConstant
- the unit cell sizepublic double getLatticeConstant()
CubicLattice
getLatticeConstant
in interface CubicLattice
public void scaleBy(double scaleFactor)
public java.lang.String toString()
toString
in class java.lang.Object