#### Previous topic

sknano.core.atoms.MDAtoms.center_of_mass

#### Next topic

sknano.core.atoms.MDAtoms.charges

# sknano.core.atoms.MDAtoms.centroid¶

MDAtoms.centroid

Centroid of Atoms.

Computes the position vector of the centroid of the Atoms coordinates.

$\mathbf{C} = \frac{\sum_{i=1}^{N_{\mathrm{atoms}}} \mathbf{r}_i}{N_{\mathrm{atoms}}}$
Returns: The position vector of the centroid coordinates.