IMoleculePositionDefinition
, java.io.Serializable
public class MoleculePositionGeometricCenterPBC extends java.lang.Object implements IMoleculePositionDefinition, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Vector |
center |
|
protected Vector |
dr |
Constructor | Description |
---|---|
MoleculePositionGeometricCenterPBC(Space space,
Boundary boundary) |
Modifier and Type | Method | Description |
---|---|---|
Vector |
position(IMolecule molecule) |
Returns the defined position for the given molecule.
|
protected final Vector center
protected final Vector dr
protected final Boundary boundary
public Vector position(IMolecule molecule)
IMoleculePositionDefinition
position
in interface IMoleculePositionDefinition
molecule
- a group of atoms for which to define a position