public class PrimitiveTrigonal extends Primitive
angle, D, idx, latticeVectors, rightAngle, size, space| Constructor | Description |
|---|---|
PrimitiveTrigonal(Space space) |
|
PrimitiveTrigonal(Space space,
double cubicSize,
double alpha,
double beta,
double gamma) |
| Modifier and Type | Method | Description |
|---|---|---|
Primitive |
copy() |
Returns a new, identical instance of this primitive.
|
double |
getAlpha() |
|
double |
getBeta() |
|
double |
getGamma() |
|
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 |
setAlpha(double t) |
|
void |
setBeta(double t) |
|
void |
setCubicSize(double newCubicSize) |
Sets the length of all primitive vectors to the given value.
|
void |
setGamma(double t) |
|
java.lang.String |
toString() |
|
protected void |
update() |
|
Polytope |
wignerSeitzCell() |
Returns the Wigner-Seitz cell specified by this primitive.
|
public PrimitiveTrigonal(Space space)
public PrimitiveTrigonal(Space space, double cubicSize, double alpha, double beta, double gamma)
public Primitive makeReciprocal()
PrimitivemakeReciprocal in class Primitivepublic void setCubicSize(double newCubicSize)
public void setAlpha(double t)
public double getAlpha()
public void setBeta(double t)
public double getBeta()
public void setGamma(double t)
public double getGamma()
public Primitive copy()
public void scaleSize(double scale)
Primitivepublic int[] latticeIndex(Vector q)
PrimitivelatticeIndex in class Primitivepublic int[] latticeIndex(Vector q, int[] dimensions)
PrimitivelatticeIndex in class Primitivepublic Polytope wignerSeitzCell()
PrimitivewignerSeitzCell in class Primitivepublic java.lang.String toString()
toString in class java.lang.Object