#### Previous topic

sknano.core.atoms.StructureAtoms.center_of_mass

#### Next topic

sknano.core.atoms.StructureAtoms.charges

# sknano.core.atoms.StructureAtoms.centroid¶

StructureAtoms.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.