BALL::GeometricCenterProcessor Class Reference
[Geometric property processors.]

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

#include <geometricProperties.h>

Inheritance diagram for BALL::GeometricCenterProcessor:
Inheritance graph
[legend]

List of all members.


Public Member Functions

Processor related methods
virtual bool start ()
start method
virtual bool finish ()
finish method
virtual Processor::Result operator() (Atom &atom)
operator ()
virtual Processor::Result operator() (const Vector3 &v)
Accessors
Vector3 & getCenter ()
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.

Generated on Thu Aug 6 18:30:46 2009 for BALL by doxygen 1.5.8