xprod {ptm}R Documentation

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.

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.

Value

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

Author(s)

Juan Carlos Aledo

Examples

xprod(c(1,1,1), c(1,2,1))

[Package ptm version 1.0.1 Index]