public class PrimitiveGeneral extends Primitive
angle, D, idx, latticeVectors, rightAngle, size, space
Constructor | Description |
---|---|
PrimitiveGeneral(Space space,
Vector[] primitiveVectors) |
Modifier and Type | Method | Description |
---|---|---|
Primitive |
copy() |
Returns a new, identical instance of this primitive.
|
int[] |
latticeIndex(Vector r) |
Returns the index which would give the unit cell containing the given
point if the index were passed to a the site method of a sufficiently
large lattice that uses this primitive.
|
int[] |
latticeIndex(Vector r,
int[] dimensions) |
Same as latticeIndex(Space.Vector), but gives index for periodic system
with number of unit cells in each direction as given by the dimensions array.
|
Primitive |
makeReciprocal() |
Method defining and constructing reciprocal primitive;
|
void |
scaleSize(double scale) |
Scales (multiplies) the size of each primitive vector by the given value.
|
protected void |
update() |
|
Polytope |
wignerSeitzCell() |
Returns the Wigner-Seitz cell specified by this primitive.
|
public Primitive copy()
Primitive
public int[] latticeIndex(Vector r)
Primitive
latticeIndex
in class Primitive
public int[] latticeIndex(Vector r, int[] dimensions)
Primitive
latticeIndex
in class Primitive
public Primitive makeReciprocal()
Primitive
makeReciprocal
in class Primitive
public void scaleSize(double scale)
Primitive
public Polytope wignerSeitzCell()
Primitive
wignerSeitzCell
in class Primitive