Jump to content

Get Distance

From PyMOL Wiki
Revision as of 20:52, 18 February 2007 by Inchoate (talk | contribs) (→DESCRIPTION)

DESCRIPTION

get_distance returns the pairwise distance between two atom selections. 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)