eucldist2 {conmolfields}R Documentation

Calculation of the square of the Euclidean distance between two atoms

Description

Calculation of the square of the Euclidean distance between two atoms

Usage

eucldist2(atom1, atom2)

Arguments

atom1
atom2

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(atom1, atom2) {
  dist2 <- (atom1$x - atom2$x)^2 + (atom1$y - atom2$y)^2 + (atom1$z - atom2$z)^2
}

[Package conmolfields version 0.0-19 Index]