next up previous contents index
Next: selection.transform() transform Up: The selection class: handling Previous: selection.rotate_origin() rotate   Contents   Index

selection.rotate_mass_center() -- rotate coordinates about mass center

rotate_mass_center(axis, angle)
This does a right-handed rotation of the coordinates of all atoms in the selection about the given axis through the mass center, by the given angle (in degrees). See also selection.transform() and selection.rotate_origin().
Example: See selection() command.



Automatic builds 2011-03-29