mbuild_polybuild.aa_molecules.ion.MonatomicIon.spin¶
- MonatomicIon.spin(theta, around, anchor=None)¶
Rotate Compound in place around an arbitrary vector.
- Parameters:
theta (float) – The angle by which to rotate the Compound, in radians.
around (np.ndarray, shape=(3,), dtype=float) – The axis about which to spin the Compound.
anchor (mb.Compound, optional, default=None (self)) – Anchor compound/particle to perform spinning. If the anchor is not a particle, the spin will be around the center of the anchor Compound.