vmd.measure.angle

vmd.measure.angle()

Measure angles between given atoms over a trajectory. Can specify multiple molids to measure angles between atoms in different molecules.

Parameters:
  • atom1 (int) – Index of first atom
  • atom2 (int) – Index of second atom
  • atom3 (int) – Index of third atom
  • molid (int) – Molecule ID of first atom. Defaults to top molecule
  • molid2 (int) – Molecule ID of second atom, if different from first molid
  • molid3 (int) – Molecule ID of third atom, if different from first molid
  • frame (int) – Single frame to measure angle in. Defaults to current frame
  • first (int) – First frame in range to measure in, for multiple frames
  • last (int) – Last frame in range to measure in, for multiple frames
Returns:

(list of float) – Angle as measured in frame(s)