eucldist2: Calculation of the square of the Euclidean distance between...

Description Usage Arguments Examples

Description

Calculation of the square of the Euclidean distance between two atoms

Usage

1
eucldist2(atom1, atom2)

Arguments

atom1
atom2

Examples

1
2
3
4
5
6
7
8
##---- 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
}

conmolfields documentation built on May 2, 2019, 4:18 p.m.