Learn R Programming

ptm (version 0.2.2)

xprod: Compute Cross Product

Description

Computes the cross product of two vectors in three-dimensional euclidean space.

Usage

xprod(...)

Arguments

...

vectors involved in the cross product.

Value

This function returns a vector that is orthogonal to the plane containing the two vector used as arguments.

Details

For each methionyl residue taking place in a S-aromatic motif, this function computes the aromatic residue involved, the distance between the delta sulfur and the aromatic ring's centroid, as well as the angle between the sulfur-aromatic vector and the normal vector of the plane containing the aromatic ring.

Examples

Run this code
# NOT RUN {
xprod(c(1,1,1), c(1,2,1))
# }

Run the code above in your browser using DataLab