PrimitiveHexagonal2D.PrimitiveHexagonal2DReciprocalpublic class PrimitiveHexagonal2D extends Primitive
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
PrimitiveHexagonal2D.PrimitiveHexagonal2DReciprocal |
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
ab |
|
protected static double |
cosGamma |
|
protected static double |
gamma |
|
protected static double |
sinGamma |
angle, D, idx, latticeVectors, rightAngle, size, space| Constructor | Description |
|---|---|
PrimitiveHexagonal2D(Space space) |
|
PrimitiveHexagonal2D(Space space,
double ab) |
| Modifier and Type | Method | Description |
|---|---|---|
Primitive |
copy() |
Returns a new PrimitiveHexagonal with the same size as this one.
|
double |
getSizeAB() |
|
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 |
setSizeAB(double newAB) |
|
java.lang.String |
toString() |
|
protected void |
update() |
|
Polytope |
wignerSeitzCell() |
Returns the Wigner-Seitz cell specified by this primitive.
|
protected double ab
protected static final double gamma
protected static final double cosGamma
protected static final double sinGamma
public PrimitiveHexagonal2D(Space space)
public PrimitiveHexagonal2D(Space space, double ab)
public Primitive makeReciprocal()
PrimitivemakeReciprocal in class Primitivepublic void setSizeAB(double newAB)
public double getSizeAB()
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