IMoleculePositionDefinition
, java.io.Serializable
public class MoleculePositionCOM extends java.lang.Object implements IMoleculePositionDefinition, java.io.Serializable
A typical use of this class would have it passed to the allAtoms method of an iterator, or wrapped in an AtomGroupAction to calculate the COM of the atoms in an atom group.
Constructor | Description |
---|---|
MoleculePositionCOM(Space space) |
Modifier and Type | Method | Description |
---|---|---|
Vector |
position(IMolecule molecule) |
Returns the defined position for the given molecule.
|
public MoleculePositionCOM(Space space)
public Vector position(IMolecule molecule)
IMoleculePositionDefinition
position
in interface IMoleculePositionDefinition
molecule
- a group of atoms for which to define a position