Learn R Programming

ptm (version 0.2.7)

xprod: Compute Cross Product

Description

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

Usage

xprod(...)

Value

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

Arguments

...

vectors involved in the cross product.

Author

Juan Carlos Aledo

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
xprod(c(1,1,1), c(1,2,1))

Run the code above in your browser using DataLab