Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

GeometricCenterProcessor Class Reference
[Geometric property processors.]

Calculates the geometric center of a given Composite object. More...

#include <geometricProperties.h>

Inheritance diagram for GeometricCenterProcessor:

UnaryProcessor< Atom > UnaryFunctor< Atom, Processor::Result > List of all members.

Public Member Functions

Processor related methods
virtual bool start () throw ()
 start method
virtual bool finish () throw ()
 finish method
virtual Processor::Result operator() (Atom &atom) throw ()
 operator ()
virtual Processor::Result operator() (const Vector3 &v) throw ()
Accessors
Vector3getCenter () throw ()
 Returns the center of the object.

Detailed Description

Calculates the geometric center of a given Composite object.

This processor calculates the geometric center of the atom coordinates of a given molecular object.

The geometric center is calculated as follows:
\[ {C} = {1}{N} {i}{N} {r_i} \] Where ${r_i}$ represents the coordinates of the ith atom.