Get Angle: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
===DESCRIPTION===  
===DESCRIPTION===  
  "get_angle" returns the angle between three atoms.  By default, the
'''get_angle''' returns the angle between three atoms.  By default, the coordinates used are from the current state, however an alternate state identifier can be provided.
  coordinates used are from the current state, however an alternate
 
  state identifier can be provided.
===USAGE===
===USAGE===
  get_angle atom1, atom2, atom3, [,state ]
get_angle atom1, atom2, atom3, [,state ]
 
===EXAMPLES===
===EXAMPLES===
  get_angle 4/n,4/c,4/ca
get_angle 4/n,4/c,4/ca
  get_angle 4/n,4/c,4/ca,state=4
get_angle 4/n,4/c,4/ca,state=4
 
===PYMOL API===
===PYMOL API===
<source lang="python">  
<source lang="python">
  cmd.get_angle(atom1="pk1",atom2="pk2",atom3="pk3",state=0)  
cmd.get_angle(atom1="pk1",atom2="pk2",atom3="pk3",state=0)  
</source>
</source>


[[Category:Commands|get_angle]]
[[Category:Commands|get_angle]]

Revision as of 22:26, 2 June 2005

DESCRIPTION

get_angle returns the angle between three atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided.

USAGE

get_angle atom1, atom2, atom3, [,state ]

EXAMPLES

get_angle 4/n,4/c,4/ca
get_angle 4/n,4/c,4/ca,state=4

PYMOL API

cmd.get_angle(atom1="pk1",atom2="pk2",atom3="pk3",state=0)