MToVector

MToVector[ { ato1 , ato2 } ]
returns the vector associated to Cartesian coordinates of ato1 and ato2. MToVector[ { { ato1 , ato2 }, { atoi , atoj }, ...} ]
returns the vectors associated to Cartesian coordinates of each atom pairs.
  • ato1 and ato2 are molecula hierarchical expressions with head MAtom.
  • Cartesian coordinates are used to compute the distance.
  • ato1 and ato2 are respectively the origin and the end of the vector.