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

selection.rotate_origin() -- rotate coordinates about origin

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



Ben Webb 2007-08-03