#### Previous topic

sknano.core.atoms.XYZAtoms.bounds

#### Next topic

sknano.core.atoms.XYZAtoms.centroid

# sknano.core.atoms.XYZAtoms.center_of_mass¶

XYZAtoms.center_of_mass

Center-of-Mass coordinates of Atoms.

Computes the position vector of the center-of-mass coordinates:

$\mathbf{R}_{COM} = \frac{1}{M}\sum_{i=1}^{N_{\mathrm{atoms}}} m_i\mathbf{r}_i$
Returns: com : Vector The position vector of the center of mass coordinates.