public class SimpleUc extends AbstractGrowthUc implements IUc
| Modifier and Type | Field and Description |
|---|---|
private AbstractGrowthAtom |
atom |
private int |
posI |
private int |
posJ |
private double |
posX |
private double |
posY |
private int |
size |
| Constructor and Description |
|---|
SimpleUc(int posI,
int posJ,
AbstractGrowthAtom atom) |
| Modifier and Type | Method and Description |
|---|---|
AbstractGrowthAtom |
getAtom(int pos)
Always returns the current atom.
|
Point3D |
getPos()
Cartesian position of the origin of the unit cell.
|
int |
getPosI() |
int |
getPosJ() |
static float |
getSizeX()
Cartesian size of the unit cell in X axis.
|
static float |
getSizeY()
Cartesian size of the unit cell in Y axis.
|
void |
setPosX(double x) |
void |
setPosY(double y) |
int |
size()
Number of elements.
|
private final AbstractGrowthAtom atom
private final int size
private final int posI
private final int posJ
private double posX
private double posY
public SimpleUc(int posI,
int posJ,
AbstractGrowthAtom atom)
public AbstractGrowthAtom getAtom(int pos)
getAtom in interface IUcgetAtom in class AbstractGrowthUcpos - ignored.public Point3D getPos()
IUcpublic static float getSizeX()
public static float getSizeY()
public void setPosX(double x)
public void setPosY(double y)