xprod: Compute Cross Product

Description Usage Arguments Details Value Author(s) Examples

View source: R/saromatic.R

Description

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

Usage

1

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

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

ptm documentation built on May 24, 2021, 9:06 a.m.

Related to xprod in ptm...