public class PrimitiveCubic extends Primitive
angle, D, idx, latticeVectors, rightAngle, size, space
Constructor | Description |
---|---|
PrimitiveCubic(Space space) |
|
PrimitiveCubic(Space space,
double latticeConstant) |
Modifier and Type | Method | Description |
---|---|---|
Primitive |
copy() |
Returns a new PrimitiveCubic with the same size as this one.
|
double |
getAngleAlpha() |
|
double |
getAngleBeta() |
|
double |
getAngleGamma() |
|
double |
getSizeABC() |
Returns the common length of all primitive vectors.
|
int[] |
latticeIndex(Vector q) |
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 q,
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.
|
void |
setSizeABC(double newCubicSize) |
Sets the length of all primitive vectors to the given value.
|
java.lang.String |
toString() |
|
Polytope |
unitCell() |
Returns a new Square (if primitive is 2D) or Cube (if 3D) with edges
given by the size of the primitive vectors.
|
protected void |
update() |
|
Polytope |
wignerSeitzCell() |
Returns a new Square (if primitive is 2D) or Cube (if 3D) with edges
given by the size of the primitive vectors.
|
public PrimitiveCubic(Space space)
public PrimitiveCubic(Space space, double latticeConstant)
public Primitive makeReciprocal()
Primitive
makeReciprocal
in class Primitive
public Primitive copy()
public void setSizeABC(double newCubicSize)
public double getSizeABC()
public double getAngleAlpha()
public double getAngleBeta()
public double getAngleGamma()
public void scaleSize(double scale)
Primitive
public int[] latticeIndex(Vector q)
Primitive
latticeIndex
in class Primitive
public int[] latticeIndex(Vector q, int[] dimensions)
Primitive
latticeIndex
in class Primitive
public Polytope wignerSeitzCell()
wignerSeitzCell
in class Primitive
public Polytope unitCell()
public java.lang.String toString()
toString
in class java.lang.Object