Modifier and Type | Field and Description |
---|---|
protected Atom |
Atom
Atom which this image is associated with
|
protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
Position
Pre-computed Cartesian coordinates of this image
|
protected int[] |
Supercell
Supercell in which this image is located
|
Constructor and Description |
---|
AtomImage(Atom atom,
int[] image)
Create a an atom image object
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AtomImage other) |
void |
computePosition()
Compute (or re-compute) position of this image
|
boolean |
equals(java.lang.Object obj) |
Atom |
getAtom()
Get the atom at the center of this
|
int |
getAtomID()
Get the ID of the atom associated with this image
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getPosition()
Get the position (in Cartesian coordinates) of this image.
|
int[] |
getSupercell()
Get which supercell this image is located in
|
int |
hashCode() |
java.lang.String |
toString() |
protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D Position
protected Atom Atom
protected int[] Supercell
public AtomImage(Atom atom, int[] image)
atom
- Link to atom that thisimage
- Supercell position (i.e., which image it is in)public int compareTo(AtomImage other)
compareTo
in interface java.lang.Comparable<AtomImage>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final void computePosition()
public Atom getAtom()
public int getAtomID()
public int[] getSupercell()
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPosition()
public java.lang.String toString()
toString
in class java.lang.Object