Difference between revisions of "Get Distance"

From PyMOLWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
    "get_distance" returns the distance between two atoms.  By default, the
+
'''get_distance''' returns the distance between two 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_distance atom1, atom2, [,state ]
+
get_distance atom1, atom2, [,state ]
+
 
 
===EXAMPLES===
 
===EXAMPLES===
    get_distance 4/n,4/c
+
get_distance 4/n,4/c
  get_distance 4/n,4/c,state=4
+
get_distance 4/n,4/c,state=4
 
+
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">  
+
<source lang="python">
  cmd.get_distance(atom1="pk1",atom2="pk2",state=0)  
+
cmd.get_distance(atom1="pk1",atom2="pk2",state=0)  
</source>
+
</source>
  
 
[[Category:Commands|get_distance]]
 
[[Category:Commands|get_distance]]

Revision as of 20:31, 13 June 2005

DESCRIPTION

get_distance returns the distance between two atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided.

USAGE

get_distance atom1, atom2, [,state ]

EXAMPLES

get_distance 4/n,4/c
get_distance 4/n,4/c,state=4

PYMOL API

cmd.get_distance(atom1="pk1",atom2="pk2",state=0)