Description Usage Arguments Examples
Calculation of the square of the Euclidean distance between two atoms
1 | eucldist2(atom1, atom2)
|
atom1 |
|
atom2 |
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
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.