etomica.atom
Class AtomPositionGeometricCenter

java.lang.Object
  extended by etomica.atom.AtomPositionGeometricCenter
All Implemented Interfaces:
IAtomPositionDefinition, Serializable

public class AtomPositionGeometricCenter
extends Object
implements IAtomPositionDefinition, Serializable

Calculates the geometric center over a set of atoms. The position of the atom or child atoms are accumulated and used to compute their center (unweighted by mass). Calculated center is obtained via the getPosition method.

See Also:
Serialized Form

Constructor Summary
AtomPositionGeometricCenter(ISpace space)
           
 
Method Summary
 IVector position(IMolecule atom)
          Returns the defined position for the given atom, which may be an atom group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomPositionGeometricCenter

public AtomPositionGeometricCenter(ISpace space)
Method Detail

position

public IVector position(IMolecule atom)
Description copied from interface: IAtomPositionDefinition
Returns the defined position for the given atom, which may be an atom group.

Specified by:
position in interface IAtomPositionDefinition