From: Thomas C. Bishop (bishop_at_tulane.edu)
Date: Fri May 02 2008 - 10:28:30 CDT

Dear VMD,
I've run into this before and have now forgotten how to solve it
"properly".

The following snippet does not work b/c the atomcoor lists as written
are not what vecsub expects....

what's most elegant way to solve this?
thanks
Tom

************ snippet ********************
set atom1 [atomselect top { index 10 } ]
set atom2 [atomselect top { index 15 } ]

 set atom1coor [$atom1 get {x y z } ]
 set atom2coor [$atom2 get {x y z } ]
 set diff [vecsub $atom1coor $atom2coor ]

-- 
***********************
*  Thomas C. Bishop   *
*Office: 504-862-3370 *
*CCS:    504-862-8391 *
*Fax:    504-862-8392 *
***********************