AbstractLattice<Vector>
, SpaceLattice
, java.io.Serializable
BravaisLatticeCrystal
, LatticeCubicSimple
public class BravaisLattice extends java.lang.Object implements SpaceLattice, java.io.Serializable
Constructor | Description |
---|---|
BravaisLattice(Primitive primitive) |
Modifier and Type | Method | Description |
---|---|---|
int |
D() |
Dimension of the lattice.
|
double[] |
getLatticeConstants() |
|
Primitive |
getPrimitive() |
Returns the primitive object used to construct this lattice.
|
Space |
getSpace() |
|
void |
setPrimitive(Primitive primitive) |
Sets the primitive for this lattice to the one given, and
updates the site positions.
|
Vector |
site(int[] index) |
Calculates and returns a vector that is the spatial position given
by adding together the primitive vectors, each multiplied by the corresponding
integer index given by the array argument.
|
protected Primitive primitive
public BravaisLattice(Primitive primitive)
public int D()
AbstractLattice
D
in interface AbstractLattice<Vector>
public Space getSpace()
getSpace
in interface SpaceLattice
public Vector site(int[] index)
site
in interface AbstractLattice<Vector>
site
in interface SpaceLattice
public void setPrimitive(Primitive primitive)
public Primitive getPrimitive()
public double[] getLatticeConstants()
getLatticeConstants
in interface SpaceLattice